Henrik Levkowetz
0800304b67
Added TeX escaping utility functions and template filters. Removed
...
html escaping and added TeX escaping for relevant parts of the bibtext
template. Fixes issue #2459 .
- Legacy-Id: 14711
2018-02-27 18:15:21 +00:00
Henrik Levkowetz
9ffe1e425a
Reverted unintentional commit
...
- Legacy-Id: 14709
2018-02-27 17:58:25 +00:00
Henrik Levkowetz
a5db4d00de
Updated PLAN
...
- Legacy-Id: 14708
2018-02-27 17:55:43 +00:00
Henrik Levkowetz
1ed8e967e7
Merged in ^/personal/henrik/6.72.1-django-1.11@14676: Upgrade to Django 1.11
...
- Legacy-Id: 14695
2018-02-25 19:55:16 +00:00
Henrik Levkowetz
71a9ffafc5
Changed allow_lazy to the @keep_lazy decorator.
...
- Legacy-Id: 14674
2018-02-22 00:13:32 +00:00
Henrik Levkowetz
5638cf3da3
Changed all usage of ForeignKey and OneToOneFiled in model.py files to the compatibility versions from ietf.utils.models.
...
- Legacy-Id: 14661
2018-02-20 15:36:05 +00:00
Henrik Levkowetz
dd7853c7a3
Check line lenght before assuming there's a first character.
...
- Legacy-Id: 14619
2018-02-06 15:18:11 +00:00
Henrik Levkowetz
717868cae2
Rewrote text_to_dict() and dict_to_text() to support unicode without RFC2822 encoding issues. Added initial values in IPR update forms, from the original disclosure, in order to make updates easier. Addresses issue #2413 .
...
- Legacy-Id: 14531
2018-01-17 00:21:34 +00:00
Henrik Levkowetz
660c81c272
Tweaked the file content read refactoring in [14406] to try latin-1 conversion if unicode doesn't work.
...
- Legacy-Id: 14410
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
2017-12-10 17:48:09 +00:00
Henrik Levkowetz
967ece7e7d
Started refactoring of reading text from document files (drafts, charters, etc.) in order to normalise on one way of doing this, and making that return unicode rather than undecoded bytes. This is the first step of two, in order to gauge the possible issues and report on discrepancies.
...
- Legacy-Id: 14406
2017-12-08 21:51:11 +00:00
Henrik Levkowetz
2c1438c240
Moved unidecode_name from utils.text to person.name.
...
Modified UserFactory to use a new locale for each new user, instead of the
same locale for a whole test run. This (almost) ensures the exercise of
code to deal with non-ascii names, something which would not happen if a
locale with ascii names was chosen at the start of a run.
Modified name.initials() to not use non-word characters as initials.
Modified unidecode_name() to do more normalization, to conform to the
conventions used in internet-drafts.
Added saving of the factory-boy random state in order to be able to re-run
a test suite with the same pseudo-random sequence as in a previous failed
run.
Fixed an issue with email formatting in test_api_submit_ok().
Modified the draft author extraction code to deal better with names with
embedded apostrophes.
- Legacy-Id: 14141
2017-09-20 15:36:30 +00:00
Henrik Levkowetz
33b275b04f
Added ietf.utils.text.unidecode_name() and replaced various uses of unidecode() with it, in order to normalize the generation of ascii versions of names, to avoid different practices in space stripping and space normalization in different parts of the code.
...
- Legacy-Id: 14128
2017-09-17 15:12:18 +00:00
Henrik Levkowetz
34a2352288
Make sure wordwrap() and friend works as intended if they are used as template filters and given string arguments.
...
- Legacy-Id: 13653
2017-06-16 13:15:02 +00:00
Henrik Levkowetz
a34d078428
Commented out again a function that was commented in by mistake in the committed code.
...
- Legacy-Id: 13543
2017-06-06 16:30:53 +00:00
Henrik Levkowetz
5ca4309691
Fixed a bug in wordwrap() where an URL (or any word) longer than width could prevent line breaking in following text.
...
- Legacy-Id: 13541
2017-06-06 14:03:02 +00:00
Henrik Levkowetz
5b2087f910
Eliminated several variations on word wrapping, keeping only what used to be wrap_text(), but renamed as ietf.utils.text.wordwrap(). This performs better than django.utils.text.wrap() when there are indented text parts. Replaced django's default wordwrap filter with one calling ietf.utils.text.wordwrap in templates. Changed to triggered wrapping in some cases, with the maybewordwrap filter, which triggers on lines longer than 100 characters. This fixes the issue with undesired wrapping of reviews.
...
- Legacy-Id: 13505
2017-06-02 23:13:22 +00:00
Henrik Levkowetz
16d129cacf
Added examples of how our different text wrapper functions work to ietf.utils.text. Run 'python ietf/utils/text.py | less' to see the results.
...
- Legacy-Id: 13498
2017-06-02 17:59:26 +00:00
Henrik Levkowetz
cf4a4b02a7
Reworked the email address handling in order to be able to support non-ascii names as part of email address fields. Reworked the generation of user names in the test suite to generate names from multiple non-ascii locales. Fixes issue #2080 .
...
- Legacy-Id: 12872
2017-02-18 21:50:18 +00:00
Henrik Levkowetz
2c27d5c611
Moved optional text wrapping before html escaping in markup_unicode(), used by get_unicode_document_content(). Fixes a problem with lines being wrapped when they should not be.
...
- Legacy-Id: 12480
2016-12-08 16:27:05 +00:00
Ole Laursen
74a02be9bf
Create new branch from trunk@r11921, and merge review-tracker-r11360 into it
...
- Legacy-Id: 11923
2016-09-06 10:17:12 +00:00
Ole Laursen
1f7d4870a8
Refactor role handling in group editing slightly and add support for
...
editing reviewer roles in review teams. Also fix a couple of review
related bugs.
- Legacy-Id: 11921
2016-09-05 12:33:54 +00:00
Henrik Levkowetz
402a099e4e
Added a modified slugify function and template filter, which converts slashes to dashes instead of eliding them. This is necessary in order to be able to distinguish the slugified room names like 'Schinkel I/II' from 'Schinkel III'.
...
- Legacy-Id: 11589
2016-07-10 13:58:30 +00:00
Ole Laursen
7cbe36fb62
Implement completing a review with tests. One can currently
...
enter/upload content or retrieve it from an IETF mailarch archive
through integrated searching support. Support for partial completion.
- Legacy-Id: 11360
2016-06-14 11:28:53 +00:00