From: <cli...@us...> - 2009-06-07 16:58:36
|
Author: cliechti Date: 2009-06-07 18:01:19 +0200 (Sun, 07 Jun 2009) New Revision: 5978 Modified: trunk/sandbox/aafigure/aafigure/aafigure.py Log: [PATCH] aafigure: Don't interpret "/" and "\" as lines in quoted strings (SF-ID: 2802367) thanks llucax Modified: trunk/sandbox/aafigure/aafigure/aafigure.py =================================================================== --- trunk/sandbox/aafigure/aafigure/aafigure.py 2009-06-07 15:58:05 UTC (rev 5977) +++ trunk/sandbox/aafigure/aafigure/aafigure.py 2009-06-07 16:01:19 UTC (rev 5978) @@ -211,6 +211,8 @@ self.shapes.extend(self._follow_upper_horizontal_line(x, y)) elif character == '=': self.shapes.extend(self._follow_horizontal_line(x, y, thick=True)) + elif character in '\\/': + self.shapes.extend(self._follow_rounded_edge(x, y)) if character == '+': self.shapes.extend(self._plus_joiner(x, y)) #~ if character in self.FILL_CHARACTERS \ @@ -226,8 +228,6 @@ else: if (self.get(x+1,y) == character or self.get(x,y+1) == character): self.shapes.extend(self._follow_fill(character, x, y)) - if character in '\\/': - self.shapes.extend(self._follow_rounded_edge(x, y)) #search for short strings too for y in range(self.height): |