* preserve-tabs and line_blocks
@ 2022-10-12 9:47 Alcuin York
[not found] ` <ea4af10c-e784-4194-b1f0-b8135c76355an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Alcuin York @ 2022-10-12 9:47 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 748 bytes --]
From my own understanding of the pandoc manual, it seems that the
--preserve-tabs option does not apply to line_blocks. And from my own
attempts this also appears to be the case. So, 2 questions:
1. Is this correct (--preserve-tabs does not apply to line_blocks).
2. If yes to 1, would it be possible to incorporate it into pandoc?
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ea4af10c-e784-4194-b1f0-b8135c76355an%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1123 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preserve-tabs and line_blocks
[not found] ` <ea4af10c-e784-4194-b1f0-b8135c76355an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-10-12 16:11 ` John MacFarlane
[not found] ` <00528E94-4F91-40DC-89A2-F7D25C42B83A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2022-10-12 16:11 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
First, note that only initial indentation of lines is significant in line blocks; internal consecutive spaces will be collapsed anyway.
Second, --preserve-tabs does apparently have an effect, but it's not what you'd expect;
% printf "|\thi" | pandoc -t native
[ LineBlock [ [ Str "\160\160hi" ] ] ]
% printf "|\thi" | pandoc -t native --preserve-tabs
[ Para [ Str "|" , Space , Str "hi" ] ]
% printf "| \thi" | pandoc -t native --preserve-tabs
[ LineBlock [ [ Str "\160hi" ] ] ]
You should go ahead and put something about this on the bug tracker.
> On Oct 12, 2022, at 2:47 AM, Alcuin York <alcuin434-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> From my own understanding of the pandoc manual, it seems that the --preserve-tabs option does not apply to line_blocks. And from my own attempts this also appears to be the case. So, 2 questions:
>
> 1. Is this correct (--preserve-tabs does not apply to line_blocks).
>
> 2. If yes to 1, would it be possible to incorporate it into pandoc?
>
>
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ea4af10c-e784-4194-b1f0-b8135c76355an%40googlegroups.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preserve-tabs and line_blocks
[not found] ` <00528E94-4F91-40DC-89A2-F7D25C42B83A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-10-13 7:56 ` Alcuin York
0 siblings, 0 replies; 3+ messages in thread
From: Alcuin York @ 2022-10-13 7:56 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2089 bytes --]
Thank you so much for your very helpful response. I do appreciate it.
I'll put it on the bug tracker.
Cheers.
On Wednesday, October 12, 2022 at 4:11:50 PM UTC fiddlosopher wrote:
> First, note that only initial indentation of lines is significant in line
> blocks; internal consecutive spaces will be collapsed anyway.
>
> Second, --preserve-tabs does apparently have an effect, but it's not what
> you'd expect;
>
> % printf "|\thi" | pandoc -t native
> [ LineBlock [ [ Str "\160\160hi" ] ] ]
> % printf "|\thi" | pandoc -t native --preserve-tabs
> [ Para [ Str "|" , Space , Str "hi" ] ]
> % printf "| \thi" | pandoc -t native --preserve-tabs
> [ LineBlock [ [ Str "\160hi" ] ] ]
>
> You should go ahead and put something about this on the bug tracker.
>
> > On Oct 12, 2022, at 2:47 AM, Alcuin York <alcu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > From my own understanding of the pandoc manual, it seems that the
> --preserve-tabs option does not apply to line_blocks. And from my own
> attempts this also appears to be the case. So, 2 questions:
> >
> > 1. Is this correct (--preserve-tabs does not apply to line_blocks).
> >
> > 2. If yes to 1, would it be possible to incorporate it into pandoc?
> >
> >
> >
> > --
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/ea4af10c-e784-4194-b1f0-b8135c76355an%40googlegroups.com
> .
>
>
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8121a239-651d-4f99-92ac-8812740b0178n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3308 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-13 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 9:47 preserve-tabs and line_blocks Alcuin York
[not found] ` <ea4af10c-e784-4194-b1f0-b8135c76355an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-12 16:11 ` John MacFarlane
[not found] ` <00528E94-4F91-40DC-89A2-F7D25C42B83A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-13 7:56 ` Alcuin York
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).