# Converted from squash_space.c # Note: Long strings consisting of spaces cannot be folded in yaml. table: | space \t 9 space \n 24578 space \x00a0 a include tables/spaces.uti repeated \s 0 tests: - # one space - " " - " " - # the usual case - " " - " " - # a very long string - " " - " " - # an even longer string - " " - " " # strings containing tabs - - " \t" - " \t" - - " \t " - " \t " - - "\t " - "\t " # Strings containing newlines - - " \n" - " \n" - - " \n " - " \n " - - "\n " - "\n " table: | space \t 9 space \x00a0 a include tables/spaces.uti noback context [$s]$s ? noback context [$s] @0 # A number of strings that we want to squash, i.e. they should all # result in an output of one space */ tests: - # a simple space - " " - " " - # a long string - " " - " " - # a very long string - " " - " " - # an even longer string - " " - " " # a couple of strings containing tabs - - " \t" - " " - - " \t " - " " - - "\t " - " " # Strings containing newlines - - " \n" - " " - - " \n " - " " - - "\n " - " " # All mixed - - " \n \t \n \t\t \n\n\n\t\t " - " "