Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
3 jaren geleden
Ben Kurtovic
1c983d3738
Assorted cleanup, linter fixes, and improvements for Python 3
3 jaren geleden
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
4 jaren geleden
Hugo
59636609db
Drop support for EOL Python
5 jaren geleden
Ben Kurtovic
68ded2f890
Add keep_template_params to Wikicode.strip_code ( #175 )
7 jaren geleden
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
8 jaren geleden
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9 jaren geleden
Ben Kurtovic
504b8bace0
Add test code for a missing branch of Tag.wiki_markup.setter; cleanup.
9 jaren geleden
David Winegar
8dc70bc20b
Add test coverage
Add some table tests to increase coverage. Also reorder some tests.
9 jaren geleden
David Winegar
1b3e3c3657
Change wiki tags to use style separators
For wiki syntax tables, add `wiki_style_separator` as an attribute
for the Tag node. Also reorder `closing_wiki_markup` property and tests
to match its place in the constructor.
9 jaren geleden
David Winegar
ec08001871
Tables and rows now use newline as padding
Tables and rows use newlines as padding, partly because these characters
are pretty important to the integrity of the table. They might need
to be in the preceding whitespace of inner tags instead as padding after,
not sure.
9 jaren geleden
David Winegar
d356a570b3
Added closing_wiki_markup support to Tag node
Added support for allowing different wiki syntax for replacing the opening
and closing tags. Added for table support.
9 jaren geleden
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
10 jaren geleden
Ben Kurtovic
8bc7ea669d
Improve test coverage; fix some node-related bugs.
* Parameters with non-integer keys can no longer be created with
showkey=False, nor have the value of this attribute be set to False
later.
* Calling Template.remove() with a Parameter object that is not part of
the template now raises ValueError instead of doing nothing.
* Added tests for HTMLEntity._unichr() being called with out-of-range
codepoints.
* Added tests for Tag.__children__() and Tag.__showtree__() involving
attributes that have no values.
10 jaren geleden
Ben Kurtovic
1312a1fb8a
Some clean up for Python 2.6 support.
* Removed unittest2 dependency on Python >2.6.
* Moved discover_tests.py into tests/.
* tokenizer.c: Fixed errors noted by -Wshorten-64-to-32.
10 jaren geleden
Marcio Faustino
88c8fb88e0
Switch to `unittest2` to be able to use new features in Python 2.6.
10 jaren geleden
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
10 jaren geleden
Ben Kurtovic
44484daef3
Updating tests for new __children__ protocol.
10 jaren geleden
Ben Kurtovic
066049b46a
Update email address.
10 jaren geleden
Ben Kurtovic
ccfc1cbe06
Add test cases for Tag's new has/get/add/remove methods.
10 jaren geleden
Ben Kurtovic
7a4b1625d3
Strip self-closing tags correctly.
10 jaren geleden
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
10 jaren geleden
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
10 jaren geleden
Ben Kurtovic
16bb133c58
Remove unused functions.
10 jaren geleden
Ben Kurtovic
e3f215f667
Finish test_tag
10 jaren geleden
Ben Kurtovic
2c4bff1d68
Start test_tag; some fixes for Tags.
10 jaren geleden
Ben Kurtovic
1b4c01b4c0
Implement assertTagNodeEqual(), start test_tag(), add to tags.mwtest.
11 jaren geleden