At one point, I wanted to put a line break between two lines in a pod. I couldn't figure it out how to do that at that time.
Now I know it's possible to do such things only by writing out the instructions for the special formatting (line break in this case) for all target formats you want to convert the pod to, and include a generic substitute (a paragraph break in this case) in case someone uses some other format.
In this demonstration, the linebreak will render correctly if you convert the pod to man or html, and the substitute will be used in e.g. text or latex format.
Note how you need to comment out the substitute in each formatting, because there is no way to do that in pod (there is no negated begin).
=pod =head1 ALL =begin man This sentence .br is broken .ig =end man =begin html <p> This sentence <br> is broken </p> <!-- =end html This sentence is broken. =begin html --> =end html =begin man .. =end man =cut
In reply to Special formatting in pod by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |