Unable to eliminate what appears to...

User 2252240 Photo


Registered User
1 post

I'm inserting large blocks of text from a Notepad file using the HTML Editor "Insert/List" function. I'm also nesting lists, an example of which can be seen on the referenced web page; all the black text is from lists nested within the list of main departments in red.

I've tried every way I can think of to left justify the text using the HTML editor, Excel and Word but the best way I've found requires I go line-by-line using Notepad. So the best way I've found is still rather tedious, especially for large blocks of text, i.e. lines of department names.

An example of what happens when I don't left justify the text can be seen on the referenced web page at R. National Oceanic And Atmospheric Administration (NOAA) [line 1480] under the 3rd occurrence of 2. DEPARTMENT OF COMMERCE (the only occurrence of "2. DEPARTMENT OF COMMERCE that has both red and black sub-department lists.

I want to eliminate the offset effect resulting in the list of department titles; the offset appears to be white space but I find that whether its inserted as a list from a .txt file or simply copied and pasted into an open field in the body of the HTML Editor, it is not ignored. HTML is supposed to ignore white space so this must not be white space. If it isn't white space it must be a hidden character? If it is a hidden character is there a way to identify it and eliminate using the "Replace" function?
Attachments:
User 38401 Photo


Senior Advisor
10,951 posts

Let me start first by saying that if you're going to use HTML5 you may as well use CSS with it so it's properly formatted rather than all inline styling on the page. You would find editing it a whole lot easier than it is now without a doubt.

Farther than that you have a ton of spaces in front of each of those lines that are not lining up. I'm not sure how you got that, so I'll assume you copied this from some editor other than a raw text edtior like Notepad and possibly it copied the formatting of the text with it and hid it on you so you couldn't see it.

I would highly suggest copying your entire document text into Windows Notepad or equivalent, NOT anything that is word processor based such as MS Word or Wordpad as they will hide formatting on you like this. All I am doing right now is deleting all the excess space in front of those lines that are moved to the right and it's fixing them just fine. You have excess amounts of space (space bar spacing) right after each of the letters denoting the lines, and also after each <li> tag and that's what is messing you up.

You'll probably have to remove all those spaces manually even if you do copy and paste it into text editor and back, but at least you will have removed any other residuals that might be lingering in there for hidden formatting.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.