Within the confines of a PDF's single-line display, I am in need of including text that does not contain new lines. While using an input instead of a textarea seems like the ideal choice, inputs do not naturally support line breaks and utilizing keydown events with regex for value changes is cumbersome.
I am wondering if there is a method to style an input element to resemble a textarea for seamless display? Despite my attempts with CSS styling, the outcomes have been less than satisfactory.