public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Preserving whitespace when converting from docx to html
@ 2018-02-12 16:31 Phoebe Gao
       [not found] ` <4cd6d65d-4a07-4d69-84c6-9a19a672425c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Phoebe Gao @ 2018-02-12 16:31 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 824 bytes --]

Does anyone know of a way to preserve whitespace when converting docx to 
html using Pandoc? When I have multiple spaces in my docx file (for 
formatting purposes), the outputted html replaces consecutive whitespaces 
with a single whitespace. Thanks!

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4cd6d65d-4a07-4d69-84c6-9a19a672425c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1233 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Preserving whitespace when converting from docx to html
       [not found] ` <4cd6d65d-4a07-4d69-84c6-9a19a672425c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-02-12 17:54   ` John MACFARLANE
  2018-02-12 18:04     ` Daniel Staal
  0 siblings, 1 reply; 3+ messages in thread
From: John MACFARLANE @ 2018-02-12 17:54 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

There's no way to do it, sorry.  we try to capture document
structure, and inevitably little stylistic details get lost.

+++ Phoebe Gao [Feb 12 18 08:31 ]:
>   Does anyone know of a way to preserve whitespace when converting docx
>   to html using Pandoc? When I have multiple spaces in my docx file (for
>   formatting purposes), the outputted html replaces consecutive
>   whitespaces with a single whitespace. Thanks!
>
>   --
>   You received this message because you are subscribed to the Google
>   Groups "pandoc-discuss" group.
>   To unsubscribe from this group and stop receiving emails from it, send
>   an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/4cd6d65d-4a07-4d69-
>   84c6-9a19a672425c%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/4cd6d65d-4a07-4d69-84c6-9a19a672425c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Preserving whitespace when converting from docx to html
  2018-02-12 17:54   ` John MACFARLANE
@ 2018-02-12 18:04     ` Daniel Staal
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Staal @ 2018-02-12 18:04 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 2/12/18 12:54 PM, John MACFARLANE wrote:
> There's no way to do it, sorry.  we try to capture document
> structure, and inevitably little stylistic details get lost.
> 
> +++ Phoebe Gao [Feb 12 18 08:31 ]:
>>   Does anyone know of a way to preserve whitespace when converting docx
>>   to html using Pandoc? When I have multiple spaces in my docx file (for
>>   formatting purposes), the outputted html replaces consecutive
>>   whitespaces with a single whitespace. Thanks! 

Also worth remembering is that HTML doesn't consider whitespace as 
significant - it collapses all whitespace.  So even if it was preserved, 
it wouldn't be persevered in the browser.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/75ffcc03-a8b9-61f4-213b-56b8e9517248%40usa.net.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-12 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 16:31 Preserving whitespace when converting from docx to html Phoebe Gao
     [not found] ` <4cd6d65d-4a07-4d69-84c6-9a19a672425c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-02-12 17:54   ` John MACFARLANE
2018-02-12 18:04     ` Daniel Staal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).