Hi, Mods!

I have a question regarding a fic I am beta'ing. Is it acceptable to have a flashback of sorts with the dialogue written as a play?

ie.:

Harry: [Then what he says]
Draco: [What he says]

It isn't like this throughout the story, just a part of it. Is it okay or should I tell the author to revise it?

Thanks!

~Mari