[Bf-blender-cvs] [8adeab4b0ea] master: Cleanup: use code doxy command for Python snippet
Campbell Barton
noreply at git.blender.org
Fri Mar 26 05:03:25 CET 2021
Commit: 8adeab4b0ea68f7d1f51c77536fed6d24bb3bd1e
Author: Campbell Barton
Date: Fri Mar 26 14:57:45 2021 +1100
Branches: master
https://developer.blender.org/rB8adeab4b0ea68f7d1f51c77536fed6d24bb3bd1e
Cleanup: use code doxy command for Python snippet
===================================================================
M intern/ghost/intern/GHOST_IconX11.h
===================================================================
diff --git a/intern/ghost/intern/GHOST_IconX11.h b/intern/ghost/intern/GHOST_IconX11.h
index 615a7dae6b5..403d611b71d 100644
--- a/intern/ghost/intern/GHOST_IconX11.h
+++ b/intern/ghost/intern/GHOST_IconX11.h
@@ -24,7 +24,8 @@
#pragma once
-/*
+/**
+ * \code{.py}
* import bpy
* import textwrap
*
@@ -42,6 +43,7 @@
* print("%d,%d," % (w, h))
* text = ", ".join(["0x%x" % p for p in pixels])
* print(textwrap.fill(text, width=120), end=",\n")
+ * \endcode
*/
/**
More information about the Bf-blender-cvs
mailing list