Skip to content

Commit

Permalink
docs: LEAP-615: Mention spaces saving for Text tag (HumanSignal#1682)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored and MasherJames committed Feb 29, 2024
1 parent ea4aa6f commit 46b1976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tags/object/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* The `Text` tag shows text that can be labeled. Use to display any type of text on the labeling interface.
* You can use `<Style>.htx-text{ white-space: pre-wrap; }</Style>` to preserve all spaces in the text, otherwise spaces are trimmed when displayed.
* 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.
* Every space in the text sample is counted when calculating result offsets, for example for NER labeling tasks.
*
* Use with the following data types: text.
Expand Down

0 comments on commit 46b1976

Please sign in to comment.