summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Rushton <erushton@gitlab.com>2019-07-16 16:41:47 +0000
committerElliot Rushton <erushton@gitlab.com>2019-07-16 16:41:47 +0000
commit3a7063501dddc5266abcc0ed20fbf7ef44b187cf (patch)
treedf6f4fced952c904f862b8634b623fab3c8f3c9f
parent42ff9f49c15ffb2cde2f234431cbbc3296c97e4f (diff)
downloadgitlab-ce-tip-for-ansi-colors.tar.gz
Apply suggestion to doc/user/project/pipelines/settings.mdtip-for-ansi-colors
-rw-r--r--doc/user/project/pipelines/settings.md17
1 files changed, 12 insertions, 5 deletions
diff --git a/doc/user/project/pipelines/settings.md b/doc/user/project/pipelines/settings.md
index 72f0e5b9050..9fd78389bae 100644
--- a/doc/user/project/pipelines/settings.md
+++ b/doc/user/project/pipelines/settings.md
@@ -89,11 +89,18 @@ in the jobs table.
A few examples of known coverage tools for a variety of languages can be found
in the pipelines settings page.
-Note that some test coverage tools output with ANSI color codes which won't be
-parsed correctly by the regular expression and will cause coverage parsing to
-not work. If your coverage tool doesn't provide an option to disable color
-codes in the output you can pipe the output of the coverage tool through a
-small one line script that will strip the color codes off. For example:
+### Removing color codes
+
+Some test coverage tools output with ANSI color codes that won't be
+parsed correctly by the regular expression and will cause coverage
+parsing to fail.
+
+If your coverage tool doesn't provide an option to disable color
+codes in the output, you can pipe the output of the coverage tool through a
+small one line script that will strip the color codes off.
+
+For example:
+
```bash
lein cloverage | perl -pe 's/\e\[?.*?[\@-~]//g'
```