- Use the minimum of Max. Chars and Max Lines, so no more than Max Lines are shown if they contain less than Max. Chars
- Use the maximum of Max. Chars and Max Lines, so at least both criteria are met
Yet another (separate) option:
- Show only complete lines, making sure all lines that meet any of the criteria above are shown by their full contents