ContentTrim

annotation class ContentTrim(val priority: Int = PriorityConstant.FIRST)

EventListenerProcessingContext.textContent 进行前置处理, 清除前后空格(如果不为null的话)。

ContentTrimPreparer 的变体,且在默认情况下,ContentTrim 的优先级是 最高 的。

不建议 ContentTrimContentToNull 一起使用。

See also

Properties

Link copied to clipboard
@get:AnnotationMapper.Property(value = "priority", target = Preparer::class)
val priority: Int