You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

8 years ago
=== Line Break Shortcode ===
Stable tag: trunk
Tested up to: 3.0.5
Requires at least: 3.0
Contributors: ReynoldsTimJ
Tags: shortcode, line break, linebreak, br
== Installation ==
Install this just like any other Wordpress plug-in. Either upload it into your wp-content/plugins directory or load it through the Upload web interface.
== Description ==
Use this to force line breaks into your posts and pages. It is simple. [br] will add a line break. It won't be filtered out by TinyMCE.
There are no attributes. Not much else to see here. I couldn't find a plugin that did this anywhere. Thought that was odd.
Example time!
If your text editor content looks like this:
`
Hello this is my
[br]
example!
`
The HTML will end up:
`
<p>Hello this is my</p>
<p><br /></p>
<p>example!</p>
`
Because the default styling of a paragraph tag adds an area of white space below it this may result in more of a break than you wanted. Solution:
`
Hello this is my [br] example!
`
Which results in the following HTML:
`
<p>Hello this is my <br /> example!</p>
`
Question/Comments: Please hit up the forum or drop me a line at Reynolds.TimJ+LinebreakPlugin@gmail.com
== Changelog ==
1.0.1 Updated structure in SVN to get plug-in to work.
1.0 - Initial check-in. I don't predict there will be many changes to this plug-in.