commit 2aa8890c29b2af2d0be8a8b3ee7dbdfd71f72b3c
parent d557e77493201690f880f67a209ab07e95cd16bb
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sun, 20 Mar 2022 15:59:22 +0100
Adapt to pandoc 2.17
Pandoc always defaulted to wrapping to 72 columns, *except* for HTML
output. That got harmonized in 2.17.
Diffstat:
9 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/build-member.sh b/build-member.sh
@@ -8,6 +8,8 @@ outdir=$3
uri=$4
output="${outdir}/${uri}"
+. settings.sh
+
firstname ()
{
local -r fullname=$1
@@ -32,7 +34,7 @@ EOF
pandoc-inline ()
{
- pandoc | sed -r 's,^<p>(.+)</p>$,\1,'
+ ${pandoc} | sed -r 's,^<p>(.+)</p>$,\1,'
}
generate-main ()
diff --git a/build-programs.py b/build-programs.py
@@ -46,7 +46,7 @@ def piece(p):
def pandoc(md):
return run(
- ('pandoc',),
+ ('pandoc', '--wrap=none'),
input=md, capture_output=True, text=True, check=True
).stdout
diff --git a/en/legal.sh b/en/legal.sh
@@ -1,7 +1,7 @@
add-legal ()
{
sed -i \
- -e /'{LEGAL}'/'r '<(pandoc en/legal.md) \
+ -e /'{LEGAL}'/'r '<(${pandoc} en/legal.md) \
-e /'{LEGAL}'/'c\' \
$1
}
diff --git a/en/quartet.sh b/en/quartet.sh
@@ -1,7 +1,7 @@
add-bio ()
{
sed -i \
- -e /'{BIO}'/'r '<(pandoc en/quartet.md) \
+ -e /'{BIO}'/'r '<(${pandoc} en/quartet.md) \
-e /'{BIO}'/'c\' \
$1
}
diff --git a/en/sitemap.sh b/en/sitemap.sh
@@ -1,7 +1,7 @@
add-plan ()
{
sed -i \
- -e /'{PLAN}'/'r '<(pandoc en/sitemap.md) \
+ -e /'{PLAN}'/'r '<(${pandoc} en/sitemap.md) \
-e /'{PLAN}'/'c\' \
$1
}
diff --git a/légal.sh b/légal.sh
@@ -1,7 +1,7 @@
add-legal ()
{
sed -i \
- -e /'{LEGAL}'/'r '<(pandoc légal.md) \
+ -e /'{LEGAL}'/'r '<(${pandoc} légal.md) \
-e /'{LEGAL}'/'c\' \
$1
}
diff --git a/plan.sh b/plan.sh
@@ -1,7 +1,7 @@
add-plan ()
{
sed -i \
- -e /'{PLAN}'/'r '<(pandoc plan.md) \
+ -e /'{PLAN}'/'r '<(${pandoc} plan.md) \
-e /'{PLAN}'/'c\' \
$1
}
diff --git a/quatuor.sh b/quatuor.sh
@@ -1,7 +1,7 @@
add-bio ()
{
sed -i \
- -e /'{BIO}'/'r '<(pandoc quatuor.md) \
+ -e /'{BIO}'/'r '<(${pandoc} quatuor.md) \
-e /'{BIO}'/'c\' \
$1
}
diff --git a/settings.sh b/settings.sh
@@ -1 +1,3 @@
domain=quatuorbellefeuille.com
+
+pandoc='pandoc --wrap=none'