Skip to content

"How to preserve multiple spaces in docx output using Quarto?" #11898

Answered by mcanouil
Liu499-create asked this question in Q&A
Discussion options

You must be logged in to vote

That's Pandoc's doing and it's unrelated to the format.

| I want to preserve the spaces       Haha
| You  Good
quarto pandoc --from markdown index.qmd --to native
[ LineBlock
    [ [ Str "I"
      , Space
      , Str "want"
      , Space
      , Str "to"
      , Space
      , Str "preserve"
      , Space
      , Str "the"
      , Space
      , Str "spaces"
      , Space
      , Str "Haha"
      ]
    , [ Str "You" , Space , Str "Good" ]
    ]
]

See:

What's the use case of wanting this and using line block?

Documentation on line block: https://pandoc.org/MANUAL.html#line-blocks

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Liu499-create
Comment options

@mcanouil
Comment options

@Liu499-create
Comment options

Answer selected by Liu499-create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants