| Author | DaveJarvis <email> |
|---|---|
| Date | 2021-07-02 23:35:24 GMT-0700 |
| Commit | 78550aa49307ccba507edc0d3170a8c7c2206da1 |
| Parent | a09bc5d |
| Delta | 3 lines added, 9 lines removed, 6-line decrease |
| package com.keenwrite.quotes; | ||
| -import com.keenwrite.dom.DocumentParser; | ||
| import org.junit.jupiter.api.Test; | ||
| @Test | ||
| void test_Quotes_Straight_Curly() throws IOException { | ||
| - final var xhtml = read( "17165.html" ); | ||
| - final var doc = DocumentParser.parse( xhtml ); | ||
| - | ||
| - Typographer.curl( doc ); | ||
| + Typographer.curl( read( "17165.html" ) ); | ||
| } | ||
| } ); | ||
| - if( curl() ) { | ||
| - Typographer.curl( doc ); | ||
| - } | ||
| + final var document = DocumentParser.toString( doc ); | ||
| - return DocumentParser.toString( doc ); | ||
| + return curl() ? Typographer.curl( document ) : document; | ||
| } catch( final Exception ex ) { | ||
| clue( ex ); |