Hanging Indent Shortcode

I was the OP on this thread, which investigates how to create a hanging indent for formal citation of sources. For some reason, this solution has stopped working.

The shortcode (mla-ref.html) no longer results in the hanging indent as before.

{{- $p := .Page -}}
{{- range (split .Inner "\n") -}}
  {{- if gt (len .) 0 }}
  <p class="p2">
    {{ . | $p.RenderString }}
  </p>
  {{- end }}
{{- end -}}

I’m wondering if some subsequent change to Hugo had this result? Does this work for anyone else?

I plugged the shown shortcode and the css from the OP to a bare hugo site using v0.152.1.

for me the result looks OK.

so maybe some other changes in your theme/css … ?

Hm. Thank you @irkode. I’ll take a further look at things.