}
header.writeGroupMark (true);
- header.writeControlWord ("colortbl;");
+ //Don't use writeControlWord, because it appends a blank,
+ //which may confuse Wordpad.
+ header.write ("\\colortbl;");
int len = colorTable.size ();
* @param i Identifier of color
*/
private void addColor (Integer i) {
- colorIndex.put (i, new Integer (colorTable.size () + 1));
+ colorIndex.put (i, new Integer (colorTable.size ()));
colorTable.addElement (i);
}
return retVal < 0 ? retVal + 256 : retVal;
}
-}
\ No newline at end of file
+}