Skip to content

doc literals: commas/periods do strange things #6184

@kubukoz

Description

@kubukoz

Describe and demonstrate the bug
This should be written as a ucm transcript if possible, calling out the unexpected behavior in the text. e.g.

>{{
I can't tell you _yet_, but I'll tell you _soon_.

I can't tell you _yet_ , but I'll tell you _soon_ .
}}

Output:

48 | >{{
           ⧩
           UntitledSection
             [ Paragraph
                 [ Word "I"
                 , Word "can't"
                 , Word "tell"
                 , Word "you"
                 , Doc.Group
                     (Join
                       [ Italic
                           (Paragraph
                             [ Doc.Group
                                 (Join
                                   [ Word "yet"
                                   , Doc.Group
                                       (Join
                                         [ Italic
                                             (Paragraph
                                               [ Word ","
                                               , Word "but"
                                               , Word "I'll"
                                               , Word "tell"
                                               , Word "you"
                                               ])
                                         , Word "soon"
                                         ])
                                   ])
                             ])
                       , Word "."
                       ])
                 ]
             , Paragraph
                 [ Word "I"
                 , Word "can't"
                 , Word "tell"
                 , Word "you"
                 , Italic (Paragraph [Word "yet"])
                 , Word ","
                 , Word "but"
                 , Word "I'll"
                 , Word "tell"
                 , Word "you"
                 , Italic (Paragraph [Word "soon"])
                 , Word "."
                 ]
             ]

Screenshots

Image

Environment (please complete the following information):

  • ucm --version [e.g. "0.5.21", or "1cb2437 (built on 2024-06-03)"]
  • OS/Architecture: [e.g. "macOS 14.5, Intel"]
  • Browser, if applicable: [e.g. "chrome 125.0.6422.142"] (Version numbers are typically found the about menu option)

Additional context
Add any other context about the problem here.

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