mbohun / biolink

Automatically exported from code.google.com/p/biolink
0 stars 0 forks source link

Exception in color table #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
RtfParserListener parserListener = new RtfParserListener();
RtfInterpreterListener interpreterListener = new RtfInterpreterListener();
RtfInterpreterTool.Interpret(original, true, parserListener, 
interpreterListener);

What is the expected output? What do you see instead?
Parsing should be ok, document opens fine in word & wordpad. We become a 
RtfUndefinedColorException

What version of the product are you using? On what operating system?
3rd March, 2012 - v1.4.0.0 on Windows XP

Please provide any additional information below.

Source string:
String original = "{\rtf1\deff1000{\fonttbl{\f1016\fswiss\fcharset134 
Tahoma;}{\f1015\fswiss\fcharset136 Tahoma;}{\f1014\fswiss\fcharset129 
Tahoma;}{\f1013\fswiss\fcharset128 Tahoma;}{\f1012\fswiss\fcharset177 
Arial;}{\f1011\fswiss\fcharset162 Arial;}{\f1010\fswiss\fcharset238 
Arial;}{\f1009\fswiss\fcharset204 Arial;}{\f1008\fswiss\fcharset161 
Arial;}{\f1007\fswiss\fcharset0 Arial;}{\f1006\froman\fcharset177 Times New 
Roman;}{\f1005\froman\fcharset162 Times New Roman;}{\f1004\froman\fcharset238 
Times New Roman;}{\f1003\froman\fcharset204 Times New 
Roman;}{\f1002\froman\fcharset161 Times New Roman;}{\f1001\ftech\fcharset2 
Symbol;}{\f1000\froman\fcharset0 Times New Roman;}}{{\colortbl 
;\red255\green0\blue0;\red0\green255\blue0;\red0\green0\blue255;}Document{\cf3\u
l  }}}";

Original issue reported on code.google.com by ColorOfC...@googlemail.com on 25 Jul 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Oh no, posted it in the wrong window. Sorry for this spam. Please close...

Original comment by ColorOfC...@googlemail.com on 25 Jul 2012 at 11:58

GoogleCodeExporter commented 9 years ago
Ok, no worries! :-)

Cheers, David.

Original comment by david.ba...@gmail.com on 25 Jul 2012 at 12:12