View | Details | Raw Unified | Return to bug 60289
Collapse All | Expand All

(-)src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java (-1 / +1 lines)
Lines 75-81 Link Here
75
 * </blockquote>
75
 * </blockquote>
76
 */
76
 */
77
public class XSSFRichTextString implements RichTextString {
77
public class XSSFRichTextString implements RichTextString {
78
    private static final Pattern utfPtrn = Pattern.compile("_x([0-9A-F]{4})_");
78
    private static final Pattern utfPtrn = Pattern.compile("_x([0-9A-Fa-f]{4})_");
79
79
80
    private CTRst st;
80
    private CTRst st;
81
    private StylesTable styles;
81
    private StylesTable styles;
(-)src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRichTextString.java (+5 lines)
Lines 236-241 Link Here
236
        //_x000D_ is converted into carriage return
236
        //_x000D_ is converted into carriage return
237
        assertEquals("abc\r2ef\r", rt.getString());
237
        assertEquals("abc\r2ef\r", rt.getString());
238
        
238
        
239
	// Test Lowercase case
240
	CTRst st2 = CTRst.Factory.newInstance();
241
	st2.setT("abc_x000d_2ef_x000d_");
242
	XSSFRichTextString rt2 = new XSSFRichTextString(st2);
243
	assertEquals("abc\r2ef\r", rt2.getString());
239
    }
244
    }
240
245
241
    public void testApplyFont_lowlevel(){
246
    public void testApplyFont_lowlevel(){

Return to bug 60289