aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog7
m---------data/templates13
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
-rw-r--r--tests/lhs-test.latex6
-rw-r--r--tests/lhs-test.latex+lhs6
-rw-r--r--tests/writer.latex6
6 files changed, 33 insertions, 7 deletions
diff --git a/changelog b/changelog
index f1549f3be..d59dab474 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+pandoc (1.13.2.1)
+
+ * Updated to build with ghc 7.10.1.
+
+ * Bumped package upper bounds for filepath, blaze-html,
+ blaze-markup.
+
pandoc (1.13.2)
* TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
diff --git a/data/templates b/data/templates
-Subproject 12ba81ec9697e238c861ca6b7f8dc08f4e876e7
+Subproject e8aec53fad6b4d587a44af5ca76c4b809569f15
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 59f71589e..52358e51e 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -887,7 +887,7 @@ htmlTag :: Monad m
=> (Tag String -> Bool)
-> ParserT [Char] st m (Tag String, String)
htmlTag f = try $ do
- lookAhead $ char '<' >> (oneOf "/!?" <|> letter)
+ lookAhead $ char '<' >> ((oneOf "/!?" >> nonspaceChar) <|> letter)
(next : _) <- getInput >>= return . canonicalizeTags . parseTags
guard $ f next
-- advance the parser
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex
index 6f2fdfb77..cf993af9b 100644
--- a/tests/lhs-test.latex
+++ b/tests/lhs-test.latex
@@ -68,6 +68,12 @@
\date{}
+% Redefines (sub)paragraphs to behave more like sections
+\let\oldparagraph\paragraph
+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\let\oldsubparagraph\subparagraph
+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+
\begin{document}
\section{lhs test}\label{lhs-test}
diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs
index 77f0e08ff..746744cc8 100644
--- a/tests/lhs-test.latex+lhs
+++ b/tests/lhs-test.latex+lhs
@@ -49,6 +49,12 @@
\date{}
+% Redefines (sub)paragraphs to behave more like sections
+\let\oldparagraph\paragraph
+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\let\oldsubparagraph\subparagraph
+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+
\begin{document}
\section{lhs test}\label{lhs-test}
diff --git a/tests/writer.latex b/tests/writer.latex
index 94e8f779e..fab5c9325 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -64,6 +64,12 @@
\author{John MacFarlane \and Anonymous}
\date{July 17, 2006}
+% Redefines (sub)paragraphs to behave more like sections
+\let\oldparagraph\paragraph
+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\let\oldsubparagraph\subparagraph
+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+
\begin{document}
\maketitle