Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 48dee3c

Browse files
docs: LEAP-615: Mention spaces saving for Text tag (#1682)
* docs: LEAP-615: Mention spaces saving for Text tag Text tag is displayed as html, so all spaces are smashed by browser, and they also go like this to result. To avoid this users can add custom style in config, described in docs. But it only says that this affects displaying, not saving the result. Adding this note as well. * Very small edit --------- Co-authored-by: Caitlin Wheeless <[email protected]> Co-authored-by: hlomzik <[email protected]>
1 parent cb578ca commit 48dee3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tags/object/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* The `Text` tag shows text that can be labeled. Use to display any type of text on the labeling interface.
5-
* You can use `<Style>.htx-text{ white-space: pre-wrap; }</Style>` to preserve all spaces in the text, otherwise spaces are trimmed when displayed.
5+
* You can use `<Style>.htx-text{ white-space: pre-wrap; }</Style>` to preserve all spaces in the text, otherwise spaces are trimmed when displayed and saved in the results.
66
* Every space in the text sample is counted when calculating result offsets, for example for NER labeling tasks.
77
*
88
* Use with the following data types: text.

0 commit comments

Comments
 (0)