Changeset 852
- Timestamp:
- 09/17/05 16:02:09 (3 years ago)
- Files:
-
- nbshell/trunk/ChangeLog (modified) (1 diff)
- nbshell/trunk/nbshell/PlainTextPlugin.py (modified) (1 diff)
- nbshell/trunk/nbshell/Sheet.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nbshell/trunk/ChangeLog
r850 r852 1 2005-09-18 Tzanko Matev <tsanko@gmail.com> 2 3 * Sheet.py (Sheet._update_celllist): Fixed two bugs in the xml to 4 nbshell blocks converter, one of which was ticket #36 5 6 1 7 2005-09-17 Tzanko Matev <tsanko@gmail.com> 2 8 nbshell/trunk/nbshell/PlainTextPlugin.py
r850 r852 339 339 self.StyleSetSpec(stc.STC_STYLE_LINENUMBER, "back:#E0C0C0") 340 340 341 self.SetKeyWords(0,'para title section') 341 #self.SetKeyWords(0,' '.join(['para', 'title', 'section', 'code', 342 # 'ipython-figure', 'ipython-block', 343 # 'ipython-inlineequation'])) 342 344 343 345 stc.EVT_STC_MODIFIED(self, id, self.OnModified) nbshell/trunk/nbshell/Sheet.py
r850 r852 256 256 child = children.next() 257 257 except StopIteration: 258 #The sheet is empty. Create one empty xml block 259 self.InsertCell('plaintext', update = False, text = '') 258 pass 260 259 else: 261 260 while True: … … 293 292 #matchers returned false. 294 293 elem_list = [] 294 flag = False 295 295 while result: 296 296 elem_list.append(child) … … 298 298 child = children.next() 299 299 except StopIteration: 300 flag = True 300 301 break 302 301 303 result = result(child) 302 304 … … 304 306 self.InsertCell(plugin_string, update = False, 305 307 element_list = elem_list) 308 if flag: 309 break 306 310 else: 307 311 #This is a simple match, create the block, giving the … … 320 324 #Run the function with the sheet element, and empty the buffer at the end 321 325 process_element(self.element) 322 if buffer.tell() != read_pos[0] :326 if buffer.tell() != read_pos[0] or not self.celllist: 323 327 buffer.seek(read_pos[0]) 324 328 self.InsertCell('plaintext', update = False, text = buffer.read())
