Changeset 17
- Timestamp:
- 05/06/08 13:54:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/io/TEXWriter.java
r4 r17 57 57 58 58 String first = toWrite.get(0); 59 int ind = first.indexOf(":");59 TexEnvironment te = new TexEnvironment(first); 60 60 61 if (ind > 0) { 62 String tag = first.substring(0, ind); 63 _writer.write("\\" + tag + "{" + ItemWriter.NEW_LINE); 61 if (te.isValid()) { 62 if (te.hasComment()) 63 _writer.write("%" + te.getComment() + ItemWriter.NEW_LINE); 64 _writer.write("\\begin{" + te.getName() + "}" + ItemWriter.NEW_LINE); 64 65 } 65 66 } 66 67 67 68 @Override 68 69 protected void writeEndLink(Item linker) throws IOException { … … 75 76 76 77 String first = toWrite.get(0); 77 int ind = first.indexOf(":");78 TexEnvironment te = new TexEnvironment(first); 78 79 79 if ( ind > 0) {80 _writer.write(" }" + ItemWriter.NEW_LINE);80 if (te.isValid()) { 81 _writer.write("\\end{" + te.getName() + "}" + ItemWriter.NEW_LINE); 81 82 } 82 83 … … 96 97 } 97 98 } 99
Note:
See TracChangeset
for help on using the changeset viewer.