Skip to content

Commit

Permalink
Preserve white space in text plugin. (tensorflow#6833)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
arcra authored and AnuarTB committed May 3, 2024
1 parent 1f88136 commit e49522e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tensorboard/components/tf_markdown_view/tf-markdown-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class TfMarkdownView extends LegacyElementMixin(PolymerElement) {
#markdown > p:last-child {
margin-bottom: 0.3em;
}
#markdown p {
/* Some users include multiple spaces and would like them preserved in
* the text visualization in TB. Googlers, see b/335770352.
*/
white-space: break-spaces;
}
/* Pleasant styles for Markdown tables. */
#markdown table {
Expand Down

0 comments on commit e49522e

Please sign in to comment.