All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.viaboxx.markdown.Cell.groovy Maven / Gradle / Ivy

There is a newer version: 2.1
Show newest version
package de.viaboxx.markdown

import groovy.util.slurpersupport.Node

/**
 * Description: 
*

* Date: 16.09.14
*

*/ class Cell { final Node node private String value Cell(Node node) { this.node = node } void render(Confluence2MD walker) { value = walker.intoString { walker.walkThrough(node) } // optimize: cut obsolete trailing line-break (from obsolete
tags in confluence HTML) if (value.endsWith('\\\n')) value = value.substring(0, value.length() - 2) walker.writeRaw(value) } int length() { return value != null ? value.length() : node.text().length() } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy