* Re '|' How to force an empty line?
@ 2018-02-01 17:46 pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
[not found] ` <201802011746.w11HkCUL023112-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ @ 2018-02-01 17:46 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Consider this markdown:
# test markdown
| A line of text. After this line I want a empty line.
|
| Last line here.
This does what I want but is ugly:
# test markdown
| A line of text. After this line I want a empty line.
<br>
| Last line here.
--
I've used pandoc for years, but never used any templates with it, so
I'm experienced but there is so much I do not know.
--
thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re '|' How to force an empty line?
[not found] ` <201802011746.w11HkCUL023112-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
@ 2018-02-01 18:12 ` John MACFARLANE
2018-02-01 18:34 ` pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
0 siblings, 1 reply; 4+ messages in thread
From: John MACFARLANE @ 2018-02-01 18:12 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
The original
| A line of text. After this line I want a empty line.
|
| Last line here.
should work fine. What output are you getting?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: '|' How to force an empty line?
2018-02-01 18:12 ` John MACFARLANE
@ 2018-02-01 18:34 ` pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
[not found] ` <201802011834.w11IYx8U006240-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ @ 2018-02-01 18:34 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw, John MACFARLANE
On Thu 2/1/18 10:12 -0800 pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org wrote:
> The original
>
> | A line of text. After this line I want a empty line.
> |
> | Last line here.
>
> should work fine. What output are you getting?
My work flow, involves so pre pandoc filtering, maybe it's my fault.
I will have to review my makefile. Will plan to report back later.
--
thanks,
Tom
--
As you suggested, this works OK:
$ cat /tmp/foo
| A line of text. After this line I want a empty line.
|
| middle line
|
| Last line here.
$ < /tmp/foo pandoc --self-contained -f markdown -t html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<div style="white-space: pre-line;">A line of text. After this line I want a empty line.
middle line
Last line here.</div>
</body>
</html>
$
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: '|' How to force an empty line? ( sorry, not a pandoc issue )
[not found] ` <201802011834.w11IYx8U006240-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
@ 2018-02-01 19:33 ` pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
0 siblings, 0 replies; 4+ messages in thread
From: pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ @ 2018-02-01 19:33 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Thanks for the help.
It was my bug in a regexp in a perl filter, that acted before pandoc:
s{[\040|\011]+$}{}mg;
# Trim trailing whitespace.
Fix:
s{[\040\011]+$}{}mg;
# Trim trailing whitespace.
Thanks for your work on pandoc!
--
Tom
--
$ pandoc -v
pandoc 2.0
Compiled with pandoc-types 1.17.0.5, texmath 0.9.1, skylighting 0.1.1.5
--snip
$ uname -a
Linux epjdn.zq3q.org 4.14.14-300.fc27.x86_64 #1 SMP Fri Jan 19 13:19:54 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
--snip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-01 19:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 17:46 Re '|' How to force an empty line? pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
[not found] ` <201802011746.w11HkCUL023112-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
2018-02-01 18:12 ` John MACFARLANE
2018-02-01 18:34 ` pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
[not found] ` <201802011834.w11IYx8U006240-Iacv5gYTstuYo1hQQC0LMg@public.gmane.org>
2018-02-01 19:33 ` '|' How to force an empty line? ( sorry, not a pandoc issue ) pcolabgooglegroups-hYYWqA7vhVBBDgjK7y7TUQ
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).