File tree Expand file tree Collapse file tree
usr/lib/linuxmint/mintUpdate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,29 +309,6 @@ def apply_l10n_descriptions(self):
309309 description = html .unescape (description )
310310 except :
311311 print ("Unable to unescape '%s'" % description )
312- dlines = description .split ("\n " )
313- value = ""
314- num = 0
315- newline = False
316- for dline in dlines :
317- dline = dline .strip ()
318- if len (dline ) > 0 :
319- if dline == "." :
320- value = "%s\n " % (value )
321- newline = True
322- else :
323- if (newline ):
324- value = "%s%s" % (value , self .capitalize (dline ))
325- else :
326- value = "%s %s" % (value , dline )
327- newline = False
328- num += 1
329- value = value .replace (" " , " " ).strip ()
330- # Capitalize the first letter
331- value = value [:1 ].upper () + value [1 :]
332- # Add missing punctuation
333- if len (value ) > 0 and value [- 1 ] not in ["." , "!" , "?" ]:
334- value = "%s." % value
335312 if update .source_name not in NON_TRANSLATED_PKGS :
336313 update .description += description
337314 except Exception as e :
You can’t perform that action at this time.
0 commit comments