@@ -226,37 +226,38 @@ def printPage(self, file, destination):
226
226
self .ln_subs = {}
227
227
228
228
if (index + 1 ) in self .vis_lines :
229
- command = self .vis_lines [index + 1 ]
230
- if command ['command' ] == 'comment' :
231
- prefix = ""
232
- if len (line ) > 0 :
233
- prefix = 3 * " "
234
- # put comment at the end of the current line
235
- clm = len (oline ) + 1
236
- self .add2lnSubs (clm , len (command ['value' ]), prefix + command ['value' ])
237
-
238
- elif command ['command' ] == 'fold' :
239
- fold = True
240
- fold_start = index + 1
241
- fold_end = command ['endline' ]
242
- fold_text = self .pretokenize (command ['value' ])
243
- folded = command ['folded' ]
244
- elif command ['command' ] == 'highlight' :
245
- v_keyword = command ['keyword' ]
246
- if v_keyword in self .src_keywords and (index + 1 ) in self .src_keywords [ v_keyword ]:
247
- clm = self .src_keywords [ v_keyword ][ index + 1 ]
248
- for clm_item in clm :
249
- self .add2lnSubs (clm_item , len (v_keyword ), self .highlightBox (v_keyword ))
250
- comment = self .highlightLabel ( self .pretokenize (command ['value' ]) )
251
- self .add2lnSubs (len (oline )+ 1 , len (comment ), comment )
252
- elif command ['command' ] == 'needinfo' :
253
- v_keyword = command ['keyword' ]
254
- if v_keyword in self .src_keywords and (index + 1 ) in self .src_keywords [ v_keyword ]:
255
- clm = self .src_keywords [ v_keyword ][ index + 1 ]
256
- for clm_item in clm :
257
- self .add2lnSubs (clm_item , len (v_keyword ), self .needinfoBox (v_keyword , command ['attrs' ]))
258
- comment = self .needinfoLabel ( self .pretokenize (command ['value' ]) )
259
- self .add2lnSubs (len (oline )+ 1 , len (comment ), comment )
229
+ commands = self .vis_lines [index + 1 ]
230
+ for command in commands :
231
+ if command ['command' ] == 'comment' :
232
+ prefix = ""
233
+ if len (line ) > 0 :
234
+ prefix = 3 * " "
235
+ # put comment at the end of the current line
236
+ clm = len (oline ) + 1
237
+ self .add2lnSubs (clm , len (command ['value' ]), prefix + command ['value' ])
238
+
239
+ elif command ['command' ] == 'fold' :
240
+ fold = True
241
+ fold_start = index + 1
242
+ fold_end = command ['endline' ]
243
+ fold_text = self .pretokenize (command ['value' ])
244
+ folded = command ['folded' ]
245
+ elif command ['command' ] == 'highlight' :
246
+ v_keyword = command ['keyword' ]
247
+ if v_keyword in self .src_keywords and (index + 1 ) in self .src_keywords [ v_keyword ]:
248
+ clm = self .src_keywords [ v_keyword ][ index + 1 ]
249
+ for clm_item in clm :
250
+ self .add2lnSubs (clm_item , len (v_keyword ), self .highlightBox (v_keyword ))
251
+ comment = self .highlightLabel ( self .pretokenize (command ['value' ]) )
252
+ self .add2lnSubs (len (oline )+ 1 , len (comment ), comment )
253
+ elif command ['command' ] == 'needinfo' :
254
+ v_keyword = command ['keyword' ]
255
+ if v_keyword in self .src_keywords and (index + 1 ) in self .src_keywords [ v_keyword ]:
256
+ clm = self .src_keywords [ v_keyword ][ index + 1 ]
257
+ for clm_item in clm :
258
+ self .add2lnSubs (clm_item , len (v_keyword ), self .needinfoBox (v_keyword , command ['attrs' ]))
259
+ comment = self .needinfoLabel ( self .pretokenize (command ['value' ]) )
260
+ self .add2lnSubs (len (oline )+ 1 , len (comment ), comment )
260
261
261
262
for keyword in self .keyworddb :
262
263
if keyword in line :
0 commit comments