Daniel Doubrovkine created JENKINS-13816:
--------------------------------------------
Summary: Refactor hundson.MarkupText to allow replacing entire
HTML body
Key: JENKINS-13816
URL: https://issues.jenkins-ci.org/browse/JENKINS-13816
Project: Jenkins
Issue Type: Improvement
Components: core
Reporter: Daniel Doubrovkine
Priority: Minor
The implementation of AnsiColor is quite hacky. It needs to replace the entire
body of text with html (translates ansi codes that can appear anywhere inside
the text to html). Unfortunately MarkupText only lets you markup the text by
inserting tags in different locations, which is not practical at all since we
need to delete existing text and insert tags all over the place.
I'd like to see MarkupText refactored to allow complete replacement of the data
with unencoded html. For starters, maybe a clearText() could get the job done?
Generally, markuptext is trying to be too smart about markup.
Another option could be an extension point that lets me replace the text stream
with html (unencoded).
Refactor core/src/main/java/hudson/MarkupText.java
https://github.com/dblock/jenkins-ansicolor-plugin
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira