Rob Rix
b97b989803
Add a newLine definition.
2015-12-09 14:56:15 -05:00
Rob Rix
d527a03ca3
Test that adjoining newlines does not append.
2015-12-09 14:50:57 -05:00
Rob Rix
0010bb0c77
Spacing.
2015-12-09 14:47:10 -05:00
Rob Rix
96e8b63801
Merge branch 'master' into fix-alignment-issues
2015-12-09 14:45:17 -05:00
joshvera
2fe4f74b69
remove comments
2015-12-09 14:35:18 -05:00
joshvera
888a2bbf8a
Remove all uses of adjoinRows
2015-12-09 14:32:00 -05:00
joshvera
51fb407004
Don't adjoin lines if they start with newlines
2015-12-09 13:41:36 -05:00
joshvera
dd54f61206
Remove adjoinRows from the equation
2015-12-09 13:30:51 -05:00
joshvera
dc456afc65
add newline to the end of Row toMarkup
2015-12-09 11:25:38 -05:00
Rob Rix
ccfb9ce050
Equal category sets also render terms as comparable.
2015-12-09 10:59:13 -05:00
Rob Rix
9e8a6f8456
Default to the line by line parser.
2015-12-09 10:36:37 -05:00
Rob Rix
b59623bf3d
Construct a parser for the lines in some input file.
2015-12-09 10:32:22 -05:00
Rob Rix
a75c1b0482
No need to reinvent fmap.
2015-12-09 10:18:52 -05:00
Rob Rix
da3634c59a
parserForType
returns a Parser.
...
This change moves the languages out of IO. I believe this to be correct
(as they should be referentially transparent) but we may wish to review
that carefully.
2015-12-09 10:11:30 -05:00
Rob Rix
d7f415da04
Move all of the tree-sitter stuff into its own module.
2015-12-09 09:58:15 -05:00
Rob Rix
dcbf7bafb7
Use the Parser type.
2015-12-09 09:50:55 -05:00
Rob Rix
f8d43dcfad
Add a Parser module/type.
2015-12-09 09:49:24 -05:00
joshvera
c67ff8f2e5
working through adjoin2
2015-12-08 19:52:38 -05:00
joshvera
bcb935c49b
add maybeFirstNewLine to look in Uls for new lines
2015-12-08 18:09:45 -05:00
Josh Vera
4a0b320640
Merge pull request #275 from github/declare-the-type-of-textElements
...
Declare the type of textElements.
2015-12-08 12:38:10 -05:00
joshvera
f86f12b7f6
Produce empty lines
2015-12-08 12:35:58 -05:00
joshvera
51be1f341a
Fix tests
2015-12-08 12:35:40 -05:00
Rob Rix
04ea70629e
Declare the type for textElements.
2015-12-08 12:17:11 -05:00
joshvera
5402a2bfbc
Add exhaustive cases to some functions
2015-12-08 12:14:36 -05:00
joshvera
e9975fea2b
Change Row constructor to be Row Line Line
2015-12-08 12:08:19 -05:00
joshvera
ef038150db
docs
2015-12-07 21:53:51 -05:00
Josh Vera
202beacef9
Merge pull request #268 from github/split-diffs-in-haskell
...
The rest of split diffs in Haskell
2015-12-07 17:01:29 -05:00
Rob Rix
a01a15bba1
Merge pull request #253 from github/split-diffs-in-haskell
...
Split diffs in Haskell
2015-12-07 16:53:17 -05:00
Rob Rix
62238923f5
Remove an unused function.
2015-12-07 16:43:32 -05:00
Rob Rix
2e81d0779a
Wrap replacements in divs.
2015-12-07 16:43:24 -05:00
Rob Rix
4a57146eb2
Wrap deletions in divs.
2015-12-07 16:35:39 -05:00
Rob Rix
f46f1b26cd
Wrap insertions in divs.
2015-12-07 16:35:14 -05:00
Rob Rix
aa64cc7c4a
Ignore the diff.html file we keep writing here.
2015-12-07 16:35:01 -05:00
Rob Rix
3904b6e697
Revert "Apply insert/delete/replace classes to td"
...
This reverts commit ed32d57a03373d371e381d47a6433b515d15921a.
2015-12-07 16:31:06 -05:00
Rob Rix
59db60917a
Add a div constructor to HTML.
2015-12-07 16:30:42 -05:00
Rob Rix
9a307a96ca
Revert "Rows contain sets of classnames"
...
This reverts commit c92ee7ac015827a891398f48f446c1a1d5252056.
2015-12-07 16:28:34 -05:00
Rob Rix
aed70270f9
Revert "display classes in ToMarkup Row instance"
...
This reverts commit 0c155677853039ba10258fdbec0a02f121bea4e4.
2015-12-07 16:28:26 -05:00
Rob Rix
19d92de3e0
Revert "Correct the tests."
...
This reverts commit 6f9d76f3e37b075c34e5901860015cc5d7361c37.
2015-12-07 16:28:16 -05:00
Rob Rix
d7a77f217f
Don’t wrap text nodes in dd nodes.
2015-12-07 16:22:26 -05:00
Rob Rix
83f9bab9f7
Don’t wrap text nodes in li nodes.
2015-12-07 16:21:59 -05:00
Rob Rix
8cefd14562
Blank lines should occupy a full line of height.
2015-12-07 16:16:09 -05:00
Rob Rix
c88d81a021
Rename rightElements → elements.
2015-12-07 16:05:23 -05:00
Rob Rix
1ff87605e8
Correct the tests.
2015-12-07 16:02:57 -05:00
joshvera
50d3627608
Apply insert/delete/replace classes to td
2015-12-07 16:00:02 -05:00
joshvera
0a3ff0438c
display classes in ToMarkup Row instance
2015-12-07 15:45:04 -05:00
joshvera
4061be6240
Rows contain sets of classnames
2015-12-07 15:37:42 -05:00
Rob Rix
c4600cdc1c
More branches.
2015-12-07 14:40:16 -05:00
Rob Rix
119bab2843
Prefix the branch classes.
2015-12-07 14:39:04 -05:00
Rob Rix
90418e3310
Prefix the leaf class with category-.
2015-12-07 14:39:00 -05:00
Rob Rix
e1317b6b82
Consistent column widths.
2015-12-07 14:35:57 -05:00