public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Problem at parsing code block with long attributes
@ 2013-06-11 12:53 Björn Peemöller
       [not found] ` <51B71DCA.2060105-jNDFPZUTrfRKC+uPiMyuuyYxWCU7E+c1@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Peemöller @ 2013-06-11 12:53 UTC (permalink / raw)
  To: pandoc-discuss

Hi,

I just discovered a strange behaviour when it comes to fenced code
blocks with long attributes. When I process the following file

~~~~~~
Text.

~~~ {.java .numberLines include="3_ExtendedBuffer/TimeException.java"}
foo
~~~

Text.

~~~ {.java .numberLines include="3_ExtendedBuffer/TimeonException.java"}
bar
~~~
~~~~~~

using `cat test.markdown | pandoc -t markdown`, I get

~~~~~~
Text.

~~~~ {.java .numberLines include="3_ExtendedBuffer/TimeException.java"}
foo
~~~~

Text.

~~~~
{.java .numberLines include="3_ExtendedBuffer/TimeonException.java"}
bar
~~~~
~~~~~~

That is, in the second code block the attributes are parsed as content
of the code block.

Can somebody explain this behaviour? I'm using pandoc 1.11.1.

Thanks in advance,
Björn

-- 
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/51B71DCA.2060105%40informatik.uni-kiel.de?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




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

* Re: Problem at parsing code block with long attributes
       [not found] ` <51B71DCA.2060105-jNDFPZUTrfRKC+uPiMyuuyYxWCU7E+c1@public.gmane.org>
@ 2013-06-11 13:08   ` Joost Kremers
       [not found]     ` <m2obbcpzgu.fsf-4Qa7NeS2ENVPDCrvnpRrPfNq91seawkrvu54Y+ZNwJg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Joost Kremers @ 2013-06-11 13:08 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On Tue, Jun 11 2013, Björn Peemöller <bjp-jNDFPZUTrfRKC+uPiMyuuyYxWCU7E+c1@public.gmane.org> wrote:
> ~~~~
> {.java .numberLines include="3_ExtendedBuffer/TimeonException.java"}
> bar
> ~~~~
> ~~~~~~

I would suspect that is a wrapping issue...



-- 
Joost Kremers
Life has its moments

-- 
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/m2obbcpzgu.fsf%40pc201.uni-germanistik.gwdg.de?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




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

* Re: Problem at parsing code block with long attributes
       [not found]     ` <m2obbcpzgu.fsf-4Qa7NeS2ENVPDCrvnpRrPfNq91seawkrvu54Y+ZNwJg@public.gmane.org>
@ 2013-06-11 17:17       ` John MacFarlane
  0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2013-06-11 17:17 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Joost Kremers [Jun 11 13 15:08 ]:
> On Tue, Jun 11 2013, Björn Peemöller <bjp-jNDFPZUTrfRKC+uPiMyuuyYxWCU7E+c1@public.gmane.org> wrote:
> > ~~~~
> > {.java .numberLines include="3_ExtendedBuffer/TimeonException.java"}
> > bar
> > ~~~~
> > ~~~~~~
> 
> I would suspect that is a wrapping issue...

Yes -- I just fixed this in master.  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/20130611171739.GA2819%40protagoras.phil.berkeley.edu?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




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

end of thread, other threads:[~2013-06-11 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 12:53 Problem at parsing code block with long attributes Björn Peemöller
     [not found] ` <51B71DCA.2060105-jNDFPZUTrfRKC+uPiMyuuyYxWCU7E+c1@public.gmane.org>
2013-06-11 13:08   ` Joost Kremers
     [not found]     ` <m2obbcpzgu.fsf-4Qa7NeS2ENVPDCrvnpRrPfNq91seawkrvu54Y+ZNwJg@public.gmane.org>
2013-06-11 17:17       ` John MacFarlane

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).