🎨 Strip trailing whitespace

This commit is contained in:
Scott Lahteine
2021-07-09 22:24:43 -05:00
parent 3ab6789807
commit 42eb2347d4
8 changed files with 9 additions and 9 deletions

View File

@ -370,7 +370,7 @@ void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
if (mark_as_selected(row, style & SS_INVERT)) {
pixel_len_t n = LCD_PIXEL_WIDTH; // pixel width of string allowed
const int plen = pstr ? calculateWidth(pstr) : 0,
vlen = vstr ? utf8_strlen(vstr) : 0;
if (style & SS_CENTER) {

View File

@ -31,7 +31,7 @@ if __name__ == "__main__":
args = parser.parse_args()
varname = os.path.splitext(os.path.basename(args.input))[0];
with open(args.input, "rb") as in_file:
data = in_file.read()
if args.deflate:

View File

@ -29,13 +29,13 @@ class WriteSource:
self.mode = mode
self.offset = 8
self.byte = 0
def finish_byte(self):
if self.offset != 8:
self.values.append(self.byte)
self.offset = 8
self.byte = 0
def add_bits_to_byte(self, value, size = 1):
self.offset -= size
self.byte = self.byte | value << self.offset

View File

@ -736,7 +736,7 @@ namespace Language_hu {
PROGMEM Language_Str MSG_CALIBRATION_FAILED = _UxGT("Kalibrálási hiba");
PROGMEM Language_Str MSG_DRIVER_BACKWARD = _UxGT(" meghajtók hátra");
PROGMEM Language_Str MSG_SD_CARD = _UxGT("SD Kártya");
PROGMEM Language_Str MSG_USB_DISK = _UxGT("USB Lemez");
}

View File

@ -86,7 +86,7 @@ int calculateWidth(PGM_P const pstr) {
const uint8_t prop = 2;
uint8_t *p = (uint8_t*)pstr;
int n = 0;
do {
wchar_t ch;
p = get_utf8_value_cb(p, read_byte_rom, &ch);