I am creating HTML buttons automatically. An representative button created in this automatic way is as follows:
<input type="button" value="Expected_Performance_of_the_ATLAS_Experiment,_Vol._3.pdf" onclick="location.href='Expected_Performance_of_the_ATLAS_Experiment,_Vol._3.pdf';"><br>
The file names and whatnot can become quite long, so I need to implement wrapping of the button text. I am aware of the trick involving the use of the CSS property white-space (e.g.
style="width: 600 px;
white-space: normal;"
), but this is not of great assistance when dealing with the file names I am using. Is there an approach which would feature more detailed delimiting options (perhaps whitespace could be given highest priority, underscores given the next highest priority and so on)? Is there a different approach that makes more sense? I thank you for any ideas you may have.