What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 140 Stack Exchange communities.

There is some character escaping problem with this post.


There is a minor editor problem

  • Edit text: Code\nCode2
  • Mark as code
  • Insert line between Code and Code2: Code\n x \nCode2

Result: Code asd Code2

Should be: Code\n x \nCode2

Original sample:

                  <goals> <goal>add-source</goal> </goals>
            <file> <name>.factorypath</name>
            <content> <![CDATA[

]]> .settings/org.eclipse.jdt.apt.core.prefs

share|improve this question
Get messy in the sandbox: meta.stackexchange.com/questions/3122/formatting-sandbox –  random Sep 26 '09 at 10:24
Should bugs be posted there? –  Thomas Jung Sep 26 '09 at 10:30
No, it's where you go to test formatting quirks out. Bugs are usually posted outside of that. –  random Sep 26 '09 at 10:36

2 Answers 2

Code must be indented 4 spaces.

See: http://stackoverflow.com/editing-help

or, click the little [?] icon above the editor

or, when editing, click the "full reference >>" link conveniently provided on the right sidebar under "formatting reference"

share|improve this answer
I tried it again and it works. It's a bit hard to find formatting problems with invisible characters. –  Thomas Jung Sep 26 '09 at 10:41
            <content> <![CDATA[

You have not indented the part between these lines of the code with the requisite four (4) leading spaces. Is that intentional?

            ]]>   </content>
share|improve this answer
No. I think I've pasted it into the form and formatted it using the editor buttons. Maybe the editor has a bug and/or the formatting. –  Thomas Jung Sep 26 '09 at 10:33
I can't repro that. I paste in your sample, press CTRL+K and it indents everything 4 chars. –  Jeff Atwood Sep 26 '09 at 10:39
Now I know what went wrong. If you edit a region that is marked as code and add a new line this line is not indented. –  Thomas Jung Sep 26 '09 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .