bare-script 4.1.8__tar.gz → 4.1.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {bare_script-4.1.8/src/bare_script.egg-info → bare_script-4.1.11}/PKG-INFO +1 -1
  2. {bare_script-4.1.8 → bare_script-4.1.11}/setup.cfg +1 -1
  3. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/markdownHighlight.bare +9 -8
  4. {bare_script-4.1.8 → bare_script-4.1.11/src/bare_script.egg-info}/PKG-INFO +1 -1
  5. {bare_script-4.1.8 → bare_script-4.1.11}/LICENSE +0 -0
  6. {bare_script-4.1.8 → bare_script-4.1.11}/README.md +0 -0
  7. {bare_script-4.1.8 → bare_script-4.1.11}/pyproject.toml +0 -0
  8. {bare_script-4.1.8 → bare_script-4.1.11}/setup.py +0 -0
  9. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/__init__.py +0 -0
  10. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/__main__.py +0 -0
  11. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/bare.py +0 -0
  12. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/__init__.py +0 -0
  13. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/args.bare +0 -0
  14. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/baredoc.bare +0 -0
  15. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/baredocCLI.bare +0 -0
  16. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/data.bare +0 -0
  17. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/dataLineChart.bare +0 -0
  18. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/dataTable.bare +0 -0
  19. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/dataUtil.bare +0 -0
  20. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/diff.bare +0 -0
  21. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/draw.bare +0 -0
  22. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/elementModel.bare +0 -0
  23. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/forms.bare +0 -0
  24. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/markdown.bare +0 -0
  25. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/markdownElements.bare +0 -0
  26. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/markdownParser.bare +0 -0
  27. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/markdownUp.bare +0 -0
  28. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/pager.bare +0 -0
  29. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/qrcode.bare +0 -0
  30. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/schemaDoc.bare +0 -0
  31. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/unittest.bare +0 -0
  32. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/include/unittestMock.bare +0 -0
  33. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/library.py +0 -0
  34. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/model.py +0 -0
  35. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/options.py +0 -0
  36. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/parser.py +0 -0
  37. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/runtime.py +0 -0
  38. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/runtime_c.c +0 -0
  39. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script/value.py +0 -0
  40. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script.egg-info/SOURCES.txt +0 -0
  41. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script.egg-info/dependency_links.txt +0 -0
  42. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script.egg-info/entry_points.txt +0 -0
  43. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script.egg-info/requires.txt +0 -0
  44. {bare_script-4.1.8 → bare_script-4.1.11}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 4.1.8
3
+ Version: 4.1.11
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = bare-script
3
- version = 4.1.8
3
+ version = 4.1.11
4
4
  url = https://github.com/craigahobbs/bare-script
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -167,6 +167,7 @@ function markdownHighlightElements(highlightRegex, lines, options):
167
167
 
168
168
  # The copy button element
169
169
  preAttr = null
170
+ codeAttr = null
170
171
  copyElements = null
171
172
  if options && objectGet(options, 'copyLinks'):
172
173
  # Increment the copy links ID index
@@ -175,14 +176,15 @@ function markdownHighlightElements(highlightRegex, lines, options):
175
176
 
176
177
  # Generate the code block ID and copy button element
177
178
  preID = '__markdown_copy_' + copyLinksIndex
178
- preAttr = {'id': preID, 'style': 'grid-area: 1 / 1; margin-top: 0; padding-right: 2.5em;'}
179
+ preAttr = {'id': preID, 'style': 'display: flex;'}
180
+ codeAttr = {'style': 'flex: 1; min-width: 0; overflow-x: auto;'}
179
181
  copyElements = { \
180
182
  'svg': 'svg', \
181
183
  'attr': { \
182
184
  'width': '20', \
183
185
  'height': '20', \
184
186
  'viewBox': '0 0 24 24', \
185
- 'style': 'grid-area: 1 / 1; justify-self: end; align-self: start; margin: 0.4em; cursor: pointer; user-select: none;', \
187
+ 'style': 'align-self: flex-start; flex-shrink: 0; cursor: pointer; user-select: none;', \
186
188
  'onclick': "window.navigator.clipboard.writeText(document.getElementById('" + preID + "').innerText);" \
187
189
  }, \
188
190
  'elem': { \
@@ -246,15 +248,14 @@ function markdownHighlightElements(highlightRegex, lines, options):
246
248
  endif
247
249
  endif
248
250
 
249
- # Create the code block element, wrapping with the copy button when present
250
- preElement = {'html': 'pre', 'attr': preAttr, 'elem': {'html': 'code', 'elem': codeChildren}}
251
+ # Create the code block element, including the copy button when present
251
252
  if !copyElements:
252
- return preElement
253
+ return {'html': 'pre', 'attr': preAttr, 'elem': {'html': 'code', 'elem': codeChildren}}
253
254
  endif
254
255
  return { \
255
- 'html': 'div', \
256
- 'attr': {'style': 'display: grid; margin-top: 1em;'}, \
257
- 'elem': [preElement, copyElements] \
256
+ 'html': 'pre', \
257
+ 'attr': preAttr, \
258
+ 'elem': [{'html': 'code', 'attr': codeAttr, 'elem': codeChildren}, copyElements] \
258
259
  }
259
260
  endfunction
260
261
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 4.1.8
3
+ Version: 4.1.11
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
File without changes
File without changes
File without changes
File without changes