hotosm / learnosm

LearnOSM.org content, Jekyll layouts & issue tracking. This repository is dedicated to helping people learn how to map in OpenStreetMap (OSM) and use many of the software and tools in the OSM community.
http://learnosm.org
MIT License
247 stars 189 forks source link

Display of code examples need improvement #627

Closed iriman closed 4 years ago

iriman commented 4 years ago

This is a screenshot from here just before the section:

image

as you see, there are two problems:

What is expecting:

image

iriman commented 4 years ago

I suggest adding the new rule white-space: pre-wrap; to the pre element

and new rules direction: ltr; and text-align: left; here: https://github.com/hotosm/learnosm/blob/7b078bcc9d20e89496d7e7734f759a26a422b1e5/style-rtl.css#L724

michael63-osm commented 4 years ago

checked locally that it works as expected and added this to staging and production sites