"How to preserve multiple spaces in docx output using Quarto?" #11898
-
DescriptionDiscussion: I'm using Quarto to generate a docx file, and when I use the Line Block format, multiple spaces are being reduced to a single space. How can I preserve multiple spaces in the output, rather than having them collapsed into one? Here's an example: In this example, I want the multiple spaces between "preserve the spaces" and "Haha" to remain, but they are being reduced to a single space. How can I prevent this from happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
That's Pandoc's doing and it's unrelated to the format. | I want to preserve the spaces Haha
| You Goodquarto 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 |
Beta Was this translation helpful? Give feedback.
That's Pandoc's doing and it's unrelated to the format.
[ 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