Board Thread:Support Requests - Getting Technical/@comment-32507313-20170623151216/@comment-168424-20170623221419

Never preview template results in VisualEditor. Switch to Source editor and use Desktop preview. It also looks like your template probably as some logic problems and is excluding the HTML tags by design. Your if and ifeq parts seem to add lots of unnecessary space and carriage returns/line breaks which probably causes certain inline tag attributes to parse incorrectly. Try using HTML comments more to eliminate unexpected carriage returns/line breaks from being added.