John MacFarlane
aff2500d46
More fixes for round-trip tests of HTML reader.
...
We exclude tables that have default widths but non-simple
content, as these can't really round-trip.
2020-04-19 17:21:19 -07:00
John MacFarlane
573214a06a
Fixed round-trip HTML tests.
...
Exclude tables with cells with line breaks because they don't
currently round-trip. (Table goes from being simple to having
explicit widths.)
2020-04-18 20:57:28 -07:00
Albert Krewinkel
11b5f1e40b
Update copyright year ( #6186 )
...
* Update copyright year
* Copyright: add notes for Lua and Jira modules
2020-03-13 09:52:47 -07:00
John MacFarlane
4c3db9273f
Apply linter suggestions. Add fix_spacing to lint target in Makefile.
2020-02-07 09:08:22 -08:00
John MacFarlane
80a0e56a5d
HTML reader tests: modify round-trip tests...
...
to avoid a special failure case involving makeSections.
2019-12-21 12:15:35 -08:00
Amogh Rathore
bd2bd9b19d
HTML Reader/Writer - Add support for <var> and <samp> ( #5861 )
...
Closes #5799
2019-11-04 08:42:30 -08:00
Amogh Rathore
d50f46d26d
Add Reader support for HTML <samp> element ( #5843 )
...
The `<samp>` element is parsed as a Span with class `sample`.
Closes #5792 .
2019-10-23 08:44:24 -07:00
John MacFarlane
052684712b
HTML reader: read data-foo
attribute into foo
.
...
The HTML writer adds the `data-` prefix for HTML5
for nonstandard attributes. But the attributes are
represented in the AST without the `data-` prefix,
so we should strip this when reading HTML.
Closes #5392 .
2019-03-25 08:43:59 -07:00
Albert Krewinkel
37a82b0b11
Add missing copyright notices and remove license boilerplate ( #5112 )
...
Quite a few modules were missing copyright notices.
This commit adds copyright notices everywhere via haddock module
headers. The old license boilerplate comment is redundant with this and has
been removed.
Update copyright years to 2019.
Closes #4592 .
2019-02-04 13:52:31 -08:00
John MacFarlane
885cbfd420
Only override --quickcheck-tests=N if N is not default value (100).
...
Some of the round-trip tests are set to do a maximum of 25
trials when the default value is given.
Closes #4956 .
2018-10-15 22:15:43 -07:00
John MacFarlane
13f8f3c1a8
HTML, Muse reader tests: reduce time taken by round-trip test.
2018-09-27 09:47:09 -07:00
Alexander Krotov
3f8891b26f
Enable tables in HTML round trip test
2018-09-11 19:24:00 +03:00
Alexander Krotov
ca420983aa
HTML reader tests: accept Blocks in round trip test
2018-09-11 19:23:46 +03:00
Alexander Krotov
1b9dd3e06b
Remove RawBlock from HTML round trip tests
2018-09-10 14:28:28 +03:00
Alexander Krotov
4467fe6d38
HTML reader: test round trip property
2018-09-10 12:15:27 +03:00
John MacFarlane
7e389cb3db
Use NoImplicitPrelude and explicitly import Prelude.
...
This seems to be necessary if we are to use our custom Prelude
with ghci.
Closes #4464 .
2018-03-18 10:46:28 -07:00
John MacFarlane
ff16db1aa3
Automatic reformating by stylish-haskell.
2017-10-27 20:28:29 -07:00
bucklereed
db55f7c1b2
HTML reader: parse <main> like <div role=main>. ( #3791 )
...
* HTML reader: parse <main> like <div role=main>.
* <main> closes <p> and behaves like a block element generally
2017-08-09 09:10:12 -07:00
bucklereed
460b6c470b
HTML reader: Use the lang value of <html> to set the lang meta value. ( #3765 )
...
* HTML reader: Use the lang value of <html> to set the lang meta value.
* Fix for pre-AMP environments.
2017-06-27 10:19:37 +02:00
John MacFarlane
94b3dacb4e
Changed all readers to take Text instead of String.
...
Readers: Renamed StringReader -> TextReader.
Updated tests.
API change.
2017-06-10 18:26:44 +02:00
John MacFarlane
6ecc5b96a9
Use tasty for tests rather than test-framework.
2017-03-14 17:07:23 +01:00
John MacFarlane
e256c8ce17
Stylish-haskell automatic formatting changes.
2017-03-04 13:03:41 +01:00
John MacFarlane
18ab864269
Moved tests/ -> test/.
2017-02-04 12:56:30 +01:00