Help with record templates

Help with record templates

So I though I finally had figured out how to print receipts automatically upon recording a new sale on my app without getting the printer prompt by using a service called PrintNode, which can trigger the receipt printer through an API call on submit. I wish I had thought of designing the receipt before purchasing the printer :(

Since I need to print on 80mm wide paper space is limited horizontally. Unfortunately, I can't find a way to arrange the detailed information for purchased items in a way that makes sense for this format. How can I stack the fields so they are stacked vertically like this for example:

Item name      Price
Item code
Other info
--
Item name      Price
Item code
Other info
--
And so on...

Currently I am only able to add the fields horizontally next to each other and it doesn't fit the design. I tried adding the fields separately and staking vertically but each field lists all elements at once like this:

Item name
Item name
Item name

Item code
Item code
Item code

... and so on.

I think the answer may be in the edit as HTML option but I can't figure it out. Any help is much appreciated.