1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed a2cf2c4

Mark USE expansion-added whitespace as such.

This way, writing new USE= won't create trailing whitespace.

  • Participants
  • Parent commits f2f6eb2
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/makeconf.py

View file
  • Ignore whitespace
 		self._useexpanded[key] = set(values)
 
 		newtokens = []
+		var._flattokens.append(self.FlattenedToken(
+				MakeConf.MakeConfFile.Whitespace(' ')))
 		for t in var._flattokens:
 			t.use_expanded = key
 			newtokens.append(t)
-		newtokens.append(self.FlattenedToken(MakeConf.MakeConfFile.Whitespace(' ')))
 		newtokens.extend(self._flattokens)
 		self._flattokens = newtokens