Skip to content

Labeled list indentation in 6.8+ darkfish is inconsistent with previous versions #1227

Closed

Description

@flavorjones

Labeled list indentation seems to have changed, and I'm not sure that it was an intentional change.

Previously, the list syntax [title] always had a visual line break before the value, while title:: stayed on the same line. Now, the value always starts on the same line as the title.

From the RDoc::MarkupReference docs, here's how it renders in older darkfish:

image

And here's how it renders with the style changes in 6.8:

image

As a result, markup like this:

# [Parameters]
# - +input+ (String) RELAX NG schema definition
# - +options:+ (Nokogiri::XML::ParseOptions)
#   Defaults to ParseOptions::DEFAULT_SCHEMA

which used to render well:

image

now renders oddly:

image

I'll take a look in the next few days, but wanted to capture what I'm seeing before I forget.

Activity

  1. st0012 commented on Dec 6, 2024

    @st0012
    Member

    Seems to be related to #1199 too

  2. flavorjones commented on Dec 6, 2024

    @flavorjones
    CollaboratorAuthor

    @st0012 Yes, I hadn't seen that one, but they are related.

    Here's a more complex example of the strange styling with labeled lists:

          # [Required Parameters]
          # - +input+ (String | IO): The \XML document to parse.
          #
          # [Optional Parameters]
          # - +url:+ (String) The base URL of the document.
          # - +encoding:+ (String) The name of the encoding of the document.
          # - +options:+ (Integer | ParseOptions) Options to control the parser behavior.
          #   Defaults to +ParseOptions::STRICT+.
          #
          # [Yields]
          # If present, the block will be passed a Nokogiri::XML::ParseOptions object to modify before
          # the fragment is parsed. See Nokogiri::XML::ParseOptions for more information.
    

    image

  3. flavorjones commented on Dec 7, 2024

    @flavorjones
    CollaboratorAuthor

    #1209 is a great fix for this issue, I +1ed it there.

  4. st0012 commented on Dec 8, 2024

    @st0012
    Member

    Closing as I've merged #1209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions