Grails

docs: Some code blocks are being wrongly indented

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: Documentation
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

Problem:
Blank lines within code blocks (of the "reference" section only) cause the following code to be over-indented.
e.g. http://grails.org/doc/1.0.x/ref/Domain%20Classes/findAll.html

Cause:
The ParagraphFilter wraps lines following a blank line with a <p> tag. For the reference section, "ref.css" indents <p> tags which is not done in the guide section.

Solution:
I don't see a way to stop the Paragraph filter from triggering inside the CodeMacro, but we can use a stronger css rule to remove the formatting.

Patch attached.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: