Ben Kurtovic
699d0638f6
Fix param blanking logic by Template.remove() ( #109 )
hace 9 años
Ben Kurtovic
4c2540060b
Fix preserve_spacing behavior in Template.add() on hidden keys ( #109 )
hace 9 años
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
hace 9 años
Ben Kurtovic
504b8bace0
Add test code for a missing branch of Tag.wiki_markup.setter; cleanup.
hace 10 años
Ben Kurtovic
810c24e123
Don't check quotes when attributes are built from tokens.
hace 10 años
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.
hace 10 años
David Winegar
7bbeb6899a
Fix ordering of tag representation
Self-closing wiki syntax tags have incorrectly ordered wiki syntax
and padding, fixed the ordering.
hace 10 años
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.
hace 10 años
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.
hace 10 años
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
hace 10 años
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
hace 10 años
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.
hace 10 años
Ben Kurtovic
08cafc0576
Raise ParserError for internal problems. Improve coverage. Cleanup.
hace 10 años
Ricordisamoa
9108d49d68
fix some typos: occurance → occurrence, parasable → parsable
hace 10 años
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
hace 10 años
Ben Kurtovic
45aec31629
Move range/xrange compatibility code to compat.py.
hace 10 años
Ben Kurtovic
99d433c2d5
Change protocol for Node iteration; rename __iternodes__ to __children__.
hace 10 años
Ben Kurtovic
066049b46a
Update email address.
hace 11 años
Ben Kurtovic
cf90557229
Template.has() should be passed ignore_empty=False by default.
**Breaking change**; closes #51 .
hace 11 años
Ben Kurtovic
40b92358b4
Simplify parameter removal.
hace 11 años
Ben Kurtovic
f2442906db
Implement support for Template.remove() taking Parameters as arguments.
hace 11 años
Ben Kurtovic
bdfd0632b3
A couple very minor nitpicks.
hace 11 años
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
hace 11 años
Ben Kurtovic
67f1762aa4
Doc updates, and allow passing a starting context to tokenize().
hace 11 años
Ben Kurtovic
d91c65dc1f
TestExternalLink; some fixes in ExternalLink.
hace 11 años
Ben Kurtovic
5e6e5b6301
tag_defs.py -> definitions.py; more outline stuff
hace 11 años
Ben Kurtovic
8fe8b1fef5
Implement ExternalLinks as tokens and in the builder.
hace 11 años
Ben Kurtovic
0886b6fbf6
Add ExternalLink Node type.
hace 11 años
Ben Kurtovic
800bd20e39
Implement Tag.has(), Tag.get(), Tag.add(), and Tag.remove() ( closes #11 ).
hace 11 años
Ben Kurtovic
9280cb16fe
Fix behavior with quoted attrs and spaces before the =.
hace 11 años
Ben Kurtovic
53c26589ee
Some node fixes; attributes with empty values now display correctly.
hace 11 años
Ben Kurtovic
a7dda77474
Template.has_param() -> Template.has()
hace 11 años
Ben Kurtovic
7a4b1625d3
Strip self-closing tags correctly.
hace 11 años
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
hace 11 años
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
hace 11 años
Ben Kurtovic
2c4bff1d68
Start test_tag; some fixes for Tags.
hace 11 años
Ben Kurtovic
b8752a5c15
test_attribute; better setters for padding attributes
hace 11 años
Ben Kurtovic
77c4df701b
Fix assorted bugs in the Tag node.
hace 11 años
Ben Kurtovic
bee74c0ced
Some doc updates.
hace 11 años
Ben Kurtovic
7d1a28a249
Support single and single-only tags like <br>.
hace 11 años
Ben Kurtovic
81e8fdd682
Give Attributes more attributes for padding data.
hace 11 años
Ben Kurtovic
6450814729
Remove 'type' attribute from tags; rework tag definitions.
hace 11 años
Ben Kurtovic
3fb8f3214c
Fix StringMixIn.maketrans() on Py3k.
- Make a test in Py3k actually use StringMixIn instead of str.
- Minor cosmetic fix.
hace 11 años
Ben Kurtovic
61fc5b5eab
Fix handling of self-closing tags ( closes #31 )
hace 11 años
Ben Kurtovic
81849013bc
Finishing tests for Templates; some fixes.
hace 11 años
Ben Kurtovic
2ca3b2805e
Implement 'before' parameter for Template.add() ( closes #21 )
hace 11 años
Ben Kurtovic
b46c98b012
Clean up template.add(); add a before param but do not implement yet.
hace 11 años
Ben Kurtovic
786d619274
Drop force_no_field in template.remove(); implement test_remove().
- Also add tests for spacing in param names.
hace 11 años
Ben Kurtovic
6a385b3921
TestParameter and a fair chunk of TestTemplate.
hace 11 años
Ben Kurtovic
6bf8cfd2ad
Fix tests for Python 3.
hace 11 años