File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,16 @@ def run(self):
133
133
134
134
line_block = nodes .line_block ()
135
135
for property in properties [1 :]:
136
- if property != "" :
136
+ if not property :
137
+ continue
138
+ elif property .startswith ("https://" ) or property .startswith ("http://" ):
139
+ link_node = nodes .reference (text = property , refuri = property )
140
+ line_block .append (link_node )
141
+ elif "@" in property :
142
+ mailto_link = f"mailto:{ property } "
143
+ email_node = nodes .reference (text = property , refuri = mailto_link )
144
+ line_block .append (email_node )
145
+ else :
137
146
line_block .append (nodes .line (text = property ))
138
147
line_block .append (nodes .line (text = "" ))
139
148
@@ -153,4 +162,4 @@ def setup(app):
153
162
'version' : '0.1' ,
154
163
'parallel_read_safe' : True ,
155
164
'parallel_write_safe' : True ,
156
- }
165
+ }
You can’t perform that action at this time.
0 commit comments