fix(plain): do not print title

This commit is contained in:
Jan De Dobbeleer 2023-08-06 15:43:29 +02:00 committed by Jan De Dobbeleer
parent 9a6fbb6f52
commit f9f309d1f4

View file

@ -37,7 +37,7 @@ func (e *Engine) Primary() string {
e.renderBlock(block, cancelNewline)
}
if len(e.Config.ConsoleTitleTemplate) > 0 {
if len(e.Config.ConsoleTitleTemplate) > 0 && !e.Env.Flags().Plain {
title := e.getTitleTemplateText()
e.write(e.Writer.FormatTitle(title))
}