Commit graph

56 commits

Author SHA1 Message Date
InspectorCaracal
f676a7aac9 fix ANSI_NORMAL override in text2html
resets states on ANSI_NORMAL flag regardless of `clean` status
2022-06-09 15:50:16 -06:00
Griatch
cd503cd9fd Ran black on text2html file for PEP8 cleanup 2022-06-04 13:14:37 +02:00
InspectorCaracal
4db12d15c0 don't need logger anymore 2022-05-09 16:57:46 -06:00
InspectorCaracal
684e80bca0 rewrite color/style replacement 2022-05-09 16:20:34 -06:00
InspectorCaracal
ba93745724 removing missed regex groups 2022-04-03 17:12:11 -06:00
InspectorCaracal
e3feffa989 clean out unnecessary whitespace regex 2022-04-03 16:43:27 -06:00
InspectorCaracal
f2accc353f remove server-side white-space parsing 2022-04-03 16:22:39 -06:00
Griatch
e4c1583705 Make text2html properly handle lone initial space. Resolve #2485 2022-03-01 21:47:21 +01:00
Griatch
c1f196bc59 Fix web client invisible-double space error. Resolve #2532 2022-02-15 23:23:26 +01:00
Griatch
bd3e31bf3c Run black reformatter on code 2022-02-08 13:03:52 +01:00
fariparedes
7358758987 Add MXP support for anchor tags 2021-06-18 14:29:46 -04:00
Griatch
0e8c979134 Fix profunc parse and html tabs. Resolve #2246 2020-11-11 00:42:15 +01:00
Griatch
fd1ef7e9eb Changing tab characters for webclient. Resolve #2239. 2020-11-01 19:10:48 +01:00
Griatch
668551a0d5 Handle webclient tabs; refactor html regex structure a little 2020-10-31 23:39:27 +01:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
ca39276001 Ran black on master branch 2019-12-16 20:33:38 +01:00
Kevin Driscoll
a7dfe5e517 Replacing deprecated method from cgi with html.escape() 2019-10-30 13:28:35 -04:00
Henddher Pedroza
cea0e1a0a4 Increase coverage in evennia/utils/text2html 2019-10-19 20:39:40 -04:00
Henddher Pedroza
9e38cef5ff Unit tests for evennia/utils/text2html. 2019-10-19 18:32:42 -04:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Greg Taylor
5e1a672fc2 Remove builtins imports
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html

None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07:00
Griatch
bc2777031d More fixes to text2ansi regexes. Resolve #1920. Resolve #1924. 2019-09-14 20:18:07 +02:00
Griatch
25aa026b28 ... and another fix to handle line breaks in web client 2019-09-11 20:02:24 +02:00
Griatch
c1be45b18d Use literal space rather than \s in text2html parser. Resolve #1916. 2019-09-11 19:58:28 +02:00
Griatch
56bfc10828 Fix line breaks from fixed-width lines in webclient. Resolve #1837. 2019-09-11 08:42:34 +02:00
Griatch
ea07a81696 Fix ANSI->HTML conversion in webclient; Resolve #1792 2019-09-08 18:26:23 +02:00
Griatch
90b42ca6fb Fix merge conflicts 2019-03-04 22:32:51 +01:00
Griatch
bedcb7d5f4 Testing new unit tests 2019-02-19 20:18:36 +01:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Simon Vermeersch
677fe306cb Webclient: don't strip single leading space 2017-01-28 20:46:11 +01:00
Griatch
69a5258fda Add escaping of the quote. Should now handle all aspects of #1002. 2016-11-06 08:57:23 +01:00
Griatch
1d81212a8e Addresses most cases related to #1108. The case of using quotes in MXP command names appears elusive, since even escaping the quote will result in a malformed JS link. 2016-11-06 01:08:25 +01:00
BlauFeuer
1f270d76ab Clarify MXP links in docstring 2016-11-03 18:13:43 -04:00
BlauFeuer
501c9f73a1 text2html.py Use double quotes in HTML MXP link
This just changes the problem from not escaping single quotes properly to not escaping double quotes when supplied in the MXP command or text.
2016-10-26 15:12:41 -04:00
Griatch
6fbdc88a27 Fix webclient ANSI background handling. Made bright ANSI backgrounds visible in color command. Resolves #1001. 2016-08-28 19:31:19 +02:00
Griatch
4e9c8aecec Fix webclient to handle changed xterm256 formula correctly. 2016-08-28 17:52:24 +02:00
Griatch
c15f107ad9 Add webclient support for blink, underline and inverse ANSI tags. The inverse tag will produce a dotted outline in the webclient; for now this seems to be no obvious way to inverse the background in a way similar to the terminal inverse. Resolves #976. 2016-06-24 23:22:38 +02:00
Griatch
e0d4f6a6c3 Fixed a bug in channelhandler if the channel had no desc. 2016-06-04 19:41:17 +02:00
Griatch
f99ee27382 Removed some test data. 2016-05-22 20:49:46 +02:00
Griatch
8b5c135d01 Changed how xterm256->HTML regexes are compiled at start-time; the regex compilation previously caused a startup delay of up to 15 seconds. After the rework, this time is down to 0.004 seconds. 2016-05-22 20:49:46 +02:00
Griatch
089235e2ec Fixed the ajax websocket send of prompts, which should resolve #973. 2016-05-22 20:49:46 +02:00
Griatch
9485e2aefe Re-added MXP-link support to the devel webclient. 2016-05-22 20:49:45 +02:00
Griatch
c46e115901 Fixed a bug with html-output of the standard ANSI-backgrounds. 2016-05-22 20:49:43 +02:00
Griatch
509d03a3dc Added webclient-support for xterm256 colors, as mentioned in #613. 2016-05-22 20:49:43 +02:00
Dan Feeney
ccd1451a02 wrote tests for the convert_urls function of TextToHTMLparser
improved regex to better handle edge cases, particularly a period following the URL
2015-11-09 10:21:39 +01:00
Dan Feeney
db218f7293 fixed regexp used in text2html's convert_urls function and moved it to the block of other parsed regex in the module 2015-11-09 10:21:39 +01:00
Ahmed Charles
11b61fe335 Import python3 compatible object. 2015-11-02 00:19:04 +01:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00