Here you can find the source of omitLineBreak(AstNode node)
public static String omitLineBreak(AstNode node)
//package com.java2s; //License from project: Open Source License import org.mozilla.javascript.ast.AstNode; public class Main { public static String omitLineBreak(AstNode node) { return omitLineBreak(node.toSource()); }/* ww w . ja v a 2s . c om*/ public static String omitLineBreak(String string) { return string.replaceAll("(\r)?\n", ""); } }