Line break on published post different from Visual Editor
-
Hi ppl:
I have a problem with line breaks on WordPress. For example, check my following post:
The following line (in red) appears without appropriate spacing from the line that goes before. It looks unprofessional. However, in the Visual Editor it appears correctly. I have tried to play around with the HTML editor, to no avail – I tried using the
tag to fix the spacing but it doesn’t work properly.“3. Rights of the Mind/Ego/Intellect/Brain (e.g. Learn programming).”
I hope someone can suggest a solution. I hope there is a permanent fix.
Thank you.
The blog I need help with is: (visible only to logged in users)
-
The red section is full of redundant as well as wrong code (probably because you copypasted it from Word or something like that). You need to switch the editor to Text (=code), remove everything that lies between “in my opinion:” and “Attending to”, and re-work the section.
If you want a regular paragraph break above and below each item, do it this way:
[…] in my opinion: <div style="color:#E30000;"> <p>1. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>2. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>3. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>4. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>5. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>6. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> <p>7. <strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</p> </div> Attending to […]To me, this will create too much blank space; I would suggest you try an ordered list instead:
[…] in my opinion: <ol style="color:#E30000;"> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> <li><strong>BOLD TEXT HERE</strong> (PARENTHESIS HERE).</li> </ol> Attending to […](Notice there are no numbers in this case: the list code will add them automatically.)
-
wow, thanks justpi for the quick reply! You are absolutely correct, I remember copying this passage into the Visual Editor from Evernote – thats what must have messed it up.
I have fixed the issue by taking the offending section into Notepad which cancels any code, fixing the line breaks and then re-pasting the section from Notepad into the Visual Editor.
Thank you Superman :P
-
You’re welcome.
In the future, never copypaste from other sources into the Visual editor: when you need to paste, paste into the Text editor. -
- The topic ‘Line break on published post different from Visual Editor’ is closed to new replies.