The same technique for handling an indented line that wraps-around, and for applying a right-aligned block to such a line, is applicable to epub files of poetry and verse.
The Gutenberg version of The Waste Land (pg1321) is a case in point. There are short lines, indented lines and long lines, and the layout matters. On the Kobo (medium font), quite a few lines wrap-around to the left-margin regardless of the indent and the layout. It quite ruins the effect. In addition, the decadal line numbers are not aligned to the right-margin as they should be.