Skip to content

Commit f2e8bd8

Browse files
authored
Preserve white space in text plugin. (#6833)
Some users require the spaces to be preserved in the text shown in the text dashboard. At the moment I can't think of a reason why not to enable this unconditionally. I imagine anybody interested in seeing text logged would be interested in the value *verbatim*, including spaces. Googlers, see b/335770352
1 parent 9ff1585 commit f2e8bd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tensorboard/components/tf_markdown_view/tf-markdown-view.ts

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class TfMarkdownView extends LegacyElementMixin(PolymerElement) {
4646
#markdown > p:last-child {
4747
margin-bottom: 0.3em;
4848
}
49+
#markdown p {
50+
/* Some users include multiple spaces and would like them preserved in
51+
* the text visualization in TB. Googlers, see b/335770352.
52+
*/
53+
white-space: break-spaces;
54+
}
4955
5056
/* Pleasant styles for Markdown tables. */
5157
#markdown table {

0 commit comments

Comments
 (0)