Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/graphql/language/block_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def is_printable_as_block_string(value: str) -> bool:
if not value:
return True # emtpy string is printable

if value.isprintable(): # single line without control characters or tabs
return not value.isspace() # only spaces would be a trailing empty line

is_empty_line = True
has_indent = False
has_common_indent = True
Expand Down
Loading