private static void parseSection(final int pendingC,final Reader reader,final boolean writingString,final StringBuilder templateExpressions) throws IOException {
  if (writingString) {
    templateExpressions.append("\"\"\"; ");
  }
  templateExpressions.append((char)pendingC);
  while (true) {
    int c=reader.read();
    if (c == -1)     break;
    if (c == '%') {
      c=reader.read();
      if (c == '>')       break;
      templateExpressions.append('%');
    }
    templateExpressions.append((char)c);
  }
  templateExpressions.append(";\n ");
}

private static void parseSection ( final int pendingC , final Reader reader , final boolean writingString , final StringBuilder templateExpressions ) throws IOException { if ( writingString ) { templateExpressions . append ( "\"\"\"; " ) ; } templateExpressions . append ( ( char ) pendingC ) ; while ( true ) { int c = reader . read ( ) ; if ( c == - 1 ) break ; if ( c == '%' ) { c = reader . read ( ) ; if ( c == '>' ) break ; templateExpressions . append ( '%' ) ; } templateExpressions . append ( ( char ) c ) ; } templateExpressions . append ( ";\n " ) ; }
parse a & lt ; % . . . . % & gt ; section if we are writing a gstring close and append ' ; ' then write the section as a statement
